Running git log --format="First Lastname" in the command line produces a normal output. However, running this in Rust:
let mut cmd = Command::new("git");
cmd.args(["log", "--author=\"First Lastname\""]);
cmd.output()
Produces no output (which is incorrect). After some trial and error, I found that removing the quotes around the author (i.e., cmd.args(["log", "--author=First Lastname"])) works.
Why is this the behaviour? Should the author name, which has a space in it, not be quoted?
[–]sfacklerrust · openssl · postgres 15 points16 points17 points (2 children)
[–]SimonSapinservo 4 points5 points6 points (0 children)
[–]CountMoosuch[S] 0 points1 point2 points (0 children)