mirror of
https://github.com/vxcontrol/multigit.git
synced 2026-07-19 18:23:34 -04:00
20 lines
476 B
Batchfile
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
|