summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2025-04-13 14:15:08 -0400
committerMark Levedahl <mlevedahl@gmail.com>2025-07-19 08:21:10 -0400
commitb76a5a854bfae6542eec333365b218c5bc0fdf5b (patch)
tree3661d15e4e4dade23b2723dd7187022d4712e6a7 /commit.c
parent3f072308447ed2aab0228d21a7ce334beeeca7e8 (diff)
git-gui: do not add directories to PATH on Windows
git-gui on Windows prepends three directories to PATH so does not honor PATH as configured. This can have undesirable consequences, for instance by preventing use of a different git for testing. This also provides at best a subset of the configuration included with Git for Windows (g4w), so is neither necessary nor sufficient there. Since commit be700fe3, git-gui.sh adds its directory to the front of PATH: this is essentially adding $(git --execdir) to the path, this is long deprecated as git moved to using "dashless" subcommands. The windows/git-gui.sh wrapper file, since commit 99fe594d, adds two directories relative to its installed location to PATH, and does so without checking that either exists or is needed. The above modifications were made before the Git For Windows project took responsibility for distributing a working solution on Windows. g4w assures a correct configuration on Windows without these, and doing so requires more than the above modifications. See [1] for a more thorough treatment. git-gui does not modify PATH on any platform except on Windows, and doing so is not needed by g4w. Let's stop modifying PATH on Windows as well. [1] https://gitforwindows.org/git-wrapper.html Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions