Files
multigit/mgit.cmd
T
Cosmin Apreutesei c46adefd2c unimportant
2015-04-08 03:45:12 +03:00

20 lines
476 B
Batchfile

@echo off
setlocal enabledelayedexpansion
rem find bash.exe from a git installation and run our git wrapper with it.
rem for this to work git.exe must be in PATH and bash.exe must be in ../bin.
:begin
call :set_dir git.exe
if exist !dir! goto git_found
goto git_not_found
:set_dir
set "dir=%~$PATH:1"
goto end
:git_found
set PATH=/bin
"%dir:~0,-12%\bin\bash.exe" "%~dp0mgit" %*
goto end
:git_not_found
echo git.exe not found in PATH
goto end
:end