Skip to content

Commit 598c487

Browse files
committed
Small clarity tweaks
This rewrites a comment and adjusts spacing.
1 parent 1305114 commit 598c487

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gix-path/src/env/git/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn git_cmd(executable: PathBuf) -> Command {
117117
}
118118
let cwd = if cfg!(windows) {
119119
env::var_os("SystemRoot") // Usually `C:\Windows`. Not to be confused with `C:\`.
120-
.or_else(|| env::var_os("windir")) // Same. Less reliable, but some callers are unusual.
120+
.or_else(|| env::var_os("windir")) // Same, in case our parent filtered out SystemRoot.
121121
.map(PathBuf::from)
122122
.filter(|p| p.is_absolute())
123123
.unwrap_or_else(env::temp_dir)
@@ -141,7 +141,6 @@ fn git_cmd(executable: PathBuf) -> Command {
141141
.env("GIT_WORK_TREE", NULL_DEVICE) // Just to avoid confusion when debugging.
142142
.stdin(Stdio::null())
143143
.stderr(Stdio::null());
144-
145144
cmd
146145
}
147146

0 commit comments

Comments
 (0)