diff options
author | wsoltys <wiso@no.way> | 2013-04-16 22:45:51 +0200 |
---|---|---|
committer | wsoltys <wiso@no.way> | 2013-04-16 22:45:51 +0200 |
commit | afb262107c0da27d993a18d95fc02baa97ccce96 (patch) | |
tree | 58ce3f82a44c0e9f7e96b67c271b00eb9fb346ae /project/Win32BuildSetup/BuildSetup.bat | |
parent | fe87e5089e8852445cc8a2461d0106acac96c97e (diff) |
[WIN32] fixed trailing space at the end of the branch name (I will do more tests...I will do more tests...I will do more tests...)
Diffstat (limited to 'project/Win32BuildSetup/BuildSetup.bat')
-rw-r--r-- | project/Win32BuildSetup/BuildSetup.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/project/Win32BuildSetup/BuildSetup.bat b/project/Win32BuildSetup/BuildSetup.bat index 1edb73b714..9bb23bad56 100644 --- a/project/Win32BuildSetup/BuildSetup.bat +++ b/project/Win32BuildSetup/BuildSetup.bat @@ -62,7 +62,7 @@ IF %comp%==vs2010 ( :: when building with jenkins there's no branch. First git command gets the branch even there :: but is empty in a normal build environment. Second git command gets the branch there. - for /f "tokens=3 delims=/" %%a in ('git branch -r --contains HEAD') do set BRANCH=%%a + for /f "tokens=3 delims=/" %%a in ('git branch -r --contains HEAD') do set BRANCH=%%a IF %BRANCH%==na ( for /f "tokens=* delims= " %%a in ('git rev-parse --abbrev-ref HEAD') do set BRANCH=%%a ) |