Skip to content

Commit

Permalink
build: Drop '--tags'
Browse files Browse the repository at this point in the history
This is not needed when using annotated tags.
  • Loading branch information
agx committed Apr 10, 2019
1 parent 8376de8 commit 03ad523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libuuu/gen_ver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ if [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ];
then
#echo "In a repo"
# Get the version of the last commit of the repo
version=`git describe --tags --long`
version=`git describe --long`
echo "#define GIT_VERSION \"lib$version\"" > $file_to_write
fi
2 changes: 1 addition & 1 deletion msvc/createversion.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ IF ERRORLEVEL 1 (
git tag -m "uuu %APPVEYOR_BUILD_VERSION%" uuu_%APPVEYOR_BUILD_VERSION%
)

FOR /F "tokens=*" %%a in ('call git describe --tags --long') do (
FOR /F "tokens=*" %%a in ('call git describe --long') do (
echo #define GIT_VERSION "lib%%a" > %1/gitversion.h
)
)

0 comments on commit 03ad523

Please sign in to comment.