Git installer: do not delete bin\git.exe blindly
[msysgit/kusma.git] / cmd / git.cmd
blobc0cea129e1203214b133898c36e41a0b21c0a455
1 @set PLINK_PROTOCOL=ssh
2 @setlocal
3 @for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
4 @set path=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%
5 @if "%HOME%"=="" @set HOME=%USERPROFILE%
6 @if "%1"=="gui" @goto gui
7 :default
8 @git.exe %*
9 @exit /b %ErrorLevel%
10 :gui
11 @if "%2"=="citool" @goto default
12 @start wish.exe "%git_install_root%\libexec\git-core\git-gui" -- %2 %3 %4 %5 %6 %7 %8 %9