Skip to content

Commit

Permalink
Update src/bootstrap/config.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Nelson <github@jyn.dev>
  • Loading branch information
dvtkrlbs and jyn514 authored Sep 20, 2022
1 parent e248523 commit 790d9d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ impl 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();

Expand Down

0 comments on commit 790d9d4

Please sign in to comment.