this does not work on windoze builds
rev-parse seems to do the job tho?
This commit is contained in:
1 parent
ac03bad282
commit
87c536b698
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ goto filwri
|
||||
set GIT=%2
|
||||
if "%GIT%"=="" set GIT=git
|
||||
for /f "usebackq" %%s in (`%GIT% rev-parse --abbrev-ref HEAD`) do @set BRA=%%s
|
||||
for /f "usebackq" %%s in (`%GIT% show --pretty=format:"%h %s" -s HEAD`) do @set REV=%%s
|
||||
for /f "usebackq" %%s in (`%GIT% rev-parse HEAD`) do @set REV=%%s
|
||||
set REV=%REV:~0,8%
|
||||
goto filwri
|
||||
|
||||
|
||||
Reference in new issue
Block a user