Skip to content

Commit

Permalink
Remove calling git describe from UpdateVersion.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Jun 11, 2021
1 parent 022bd37 commit 9ea640f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Source/Script/UpdateVersion.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ if not "%~2" == "" set Platform=%~2
if not "%~2" == "" set InFile="%~3"
if not "%~3" == "" set OutFile="%~4"

FOR /F "tokens=1 delims=" %%A in ('git describe --tags --long --dirty') do SET current_tag=%%A

if %Platform%==x64 set BuildMode=%BuildMode%64

echo "%base_dir%\Bin\%BuildMode%\UpdateVersion.exe" %InFile% %OutFile% "%current_tag%"
"%base_dir%\Bin\%BuildMode%\UpdateVersion.exe" %InFile% %OutFile% "%current_tag%"
echo "%base_dir%\Bin\%BuildMode%\UpdateVersion.exe" %InFile% %OutFile%
"%base_dir%\Bin\%BuildMode%\UpdateVersion.exe" %InFile% %OutFile%
2 changes: 1 addition & 1 deletion Source/UpdateVersion/UpdateVersion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ std::string GitRevisionShort(CPath & SourceDirectory)

int main()
{
if (__argc < 4)
if (__argc < 3)
{
return 0;
}
Expand Down

0 comments on commit 9ea640f

Please sign in to comment.