mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Trim the git output
This commit is contained in:
parent
4c7ee4f27f
commit
f8033ac0c0
|
@ -193,7 +193,9 @@ fn execute_git_command(root_directory: &Path, args: &[&str]) -> Result<String, E
|
|||
|
||||
assert!(git_cmd.status.success());
|
||||
|
||||
String::from_utf8(git_cmd.stdout).map_err(|_| Error::Git("Output not utf-8"))
|
||||
String::from_utf8(git_cmd.stdout)
|
||||
.map(|output| output.trim().to_owned())
|
||||
.map_err(|_| Error::Git("Output not utf-8"))
|
||||
}
|
||||
|
||||
fn glob_many(root_directory: &Path, globs: &[&str]) -> Result<Vec<std::path::PathBuf>, Error> {
|
||||
|
|
Loading…
Reference in a new issue