Skip to content

Commit

Permalink
Clarify comment about where we run git from
Browse files Browse the repository at this point in the history
  • Loading branch information
EliahKagan committed Aug 30, 2024
1 parent 6160a83 commit 5200184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gix-path/src/env/git/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ fn git_cmd(executable: PathBuf) -> Command {
const CREATE_NO_WINDOW: u32 = 0x08000000;
cmd.creation_flags(CREATE_NO_WINDOW);
}
// We will try to run `git` from a location fairly high in the filesystem, in the hope that it
// may help if we are deeply nested, on network store, or in a directory that has been deleted.
// We will try to run `git` from a location fairly high in the filesystem, in the hope it may
// be faster if we are deeply nested, on a slow disk, or in a directory that has been deleted.
let cwd = if cfg!(windows) {
// We try the Windows directory (usually `C:\Windows`) first. It is given by `SystemRoot`,
// except in rare cases where our own parent has not passed down that environment variable.
Expand Down

0 comments on commit 5200184

Please sign in to comment.