* fix: use 'git branch' in for loop causes infinity loop of forking cmd.exe
authormitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Sun, 14 Apr 2013 08:44:20 +0000 (08:44 +0000)
committermitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Sun, 14 Apr 2013 08:44:20 +0000 (08:44 +0000)
git-svn-id: https://lab.mitty.jp/svn/lab/trunk@212 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

misc/git.cmd

index a3b5a1c..ac17ae5 100644 (file)
@@ -9,7 +9,7 @@ git.exe branch > NUL 2>&1
 if %ERRORLEVEL% EQU 128 goto norepos
 
 
-for /f "tokens=2" %%i in ('git branch') do set BRANCH=%%i
+for /f "tokens=2" %%i in ('git.exe branch') do set BRANCH=%%i
 prompt $P (%BRANCH%) $G
 
 goto end