* fix: use 'git branch' in for loop causes infinity loop of forking cmd.exe
[lab.git] / 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