From: mitty Date: Sun, 14 Apr 2013 08:44:20 +0000 (+0000) Subject: * fix: use 'git branch' in for loop causes infinity loop of forking cmd.exe X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=a696331e4bdc03de5b1a929defbbae0ac5c6d874;p=lab.git * fix: use 'git branch' in for loop causes infinity loop of forking cmd.exe git-svn-id: https://lab.mitty.jp/svn/lab/trunk@212 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- diff --git a/misc/git.cmd b/misc/git.cmd index a3b5a1c..ac17ae5 100644 --- a/misc/git.cmd +++ b/misc/git.cmd @@ -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