On Montag, 23. Juni 2008, Roman Terekhov wrote:
> It could be good to insert: @echo on at the end of the git.cmd file.
> This will make the git.cmd transparent when it is used in batch scripts.
>
> The file could look like this:
>
> @echo off
> setlocal
> for /F "delims=" %%I in ("%~dp0..") do set
> path=%%~fI\bin;%%~fI\mingw\bin;%PATH%
> if "%HOME%"=="" set HOME=%USERPROFILE%
> git.exe %*
> @echo on
> @exit /b %ErrorLevel%In this case, you are better off adding these environment variables to your permanent environemnt and remove git.cmd, then you'll run git.exe directly. -- Hannes
