]> git.lizzy.rs Git - rust.git/commitdiff
Update src/bootstrap/config.rs
authorTuna <dvt.tnhn.krlbs@icloud.com>
Tue, 20 Sep 2022 03:39:05 +0000 (06:39 +0300)
committerGitHub <noreply@github.com>
Tue, 20 Sep 2022 03:39:05 +0000 (06:39 +0300)
Co-authored-by: Joshua Nelson <github@jyn.dev>
src/bootstrap/config.rs

index 8b657788a687f577152e876452b996e3c74cefd9..a6333976f2ac2a6d04d062cf51b8d790a0aff61f 100644 (file)
@@ -821,6 +821,7 @@ pub fn parse(args: &[String]) -> Config {
             .and_then(|output| if output.status.success() { Some(output) } else { None });
         if let Some(output) = output {
             let git_root = String::from_utf8(output.stdout).unwrap();
+            // We need to canonicalize this path to make sure it uses backslashes instead of forward slashes.
             let git_root = PathBuf::from(git_root.trim()).canonicalize().unwrap();
             let s = git_root.to_str().unwrap();