Fixed incorrect revision number generated by Build.bat due to multiple branches

This commit is contained in:
Birunthan Mohanathas 2012-04-05 15:05:07 +03:00
parent 22c5d6a340
commit 6490dad2dc

View File

@ -39,7 +39,7 @@ set GIT=%GIT:Program Files\=Program Files (x86)\%
if not exist "%GIT%" echo ERROR: git.exe not found & goto END
:GITFOUND
set /a REVISION=0
for /f "usebackq delims= " %%G in (`"%GIT%" rev-list --all`) do set /a REVISION+=1
for /f "usebackq delims= " %%G in (`"%GIT%" rev-list master`) do set /a REVISION+=1
goto UPDATEVERSION
:: svn