From 04190289ec710f23a6e703522d7b2aa80599f6c2 Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Fri, 2 May 2008 18:48:38 +0200 Subject: [PATCH] Append PATH in git.cmd and gitk.cmd The old way of handling PATH in git.cmd and gitk.cmd was not perfect. git.cmd and gitk.cmd used to completely isolate the msysgit PATH from the system PATH. One problem is that programs outside of the msysgit installation must be called with their full path, even if they are in the system PATH. This commit appends the system PATH after the msysgit paths, as suggested by Clifford Caoile. Signed-off-by: Steffen Prohaska Tested-by: Clifford Caoile --- cmd/git.cmd | 2 +- cmd/gitk.cmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/git.cmd b/cmd/git.cmd index 0640a3828a..7111ca8e0a 100644 --- a/cmd/git.cmd +++ b/cmd/git.cmd @@ -1,6 +1,6 @@ @echo off setlocal -for /F "delims=" %%I in ("%~dp0..") do set path=%%~fI\bin;%%~fI\mingw\bin +for /F "delims=" %%I in ("%~dp0..") do set path=%%~fI\bin;%%~fI\mingw\bin;%PATH% if "%HOME%"=="" set HOME=%USERPROFILE% git.exe %* exit /b %ErrorLevel% diff --git a/cmd/gitk.cmd b/cmd/gitk.cmd index 2653834bab..f6437b4a5c 100644 --- a/cmd/gitk.cmd +++ b/cmd/gitk.cmd @@ -1,5 +1,5 @@ @echo off setlocal -for /F "delims=" %%I in ("%~dp0..") do set path=%%~fI\bin;%%~fI\mingw\bin +for /F "delims=" %%I in ("%~dp0..") do set path=%%~fI\bin;%%~fI\mingw\bin;%PATH% if "%HOME%"=="" set HOME=%USERPROFILE% start /B sh.exe /bin/gitk %* -- 2.11.4.GIT