We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e81674 commit a7d117bCopy full SHA for a7d117b
src/cli.rs
@@ -328,7 +328,10 @@ pub fn get_git_version() -> String {
328
let version = std::process::Command::new("git").arg("--version").output();
329
330
match version {
331
- Ok(v) => String::from_utf8_lossy(&v.stdout).replace('\n', ""),
+ // TODO: make those replaces controllable with config
332
+ Ok(v) => String::from_utf8_lossy(&v.stdout)
333
+ .replace('\n', "")
334
+ .replace("version ","v"),
335
Err(_) => String::new(),
336
}
337
0 commit comments