Find file
1b8d09c Feb 19, 2015
@patthoyts @ferstl @sschuberth @manekovskiy @dscho @bbodenmiller
17 lines (12 sloc) 545 Bytes
@rem Do not use "echo off" to not affect any child calls.
@rem Get the absolute path to the current directory, which is assumed to be the
@rem Git installation root.
@for /F "delims=" %%I in ("%~dp0") do @set git_install_root=%%~fI
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%git_install_root%\cmd;%PATH%
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@if not defined TERM set TERM=msys
@cd /d %HOME%
@call %COMSPEC%