Skip to content

Commit

Permalink
Search for any tag when running 'git describe'
Browse files Browse the repository at this point in the history
Git tags created by Github aren't annotated. By running 'git describe --tags', these tags are recognized as well.

Signed-off-by: Jan Schlicht <[email protected]>
  • Loading branch information
Jan Schlicht committed Jul 8, 2020
1 parent 9391ef2 commit eb02fb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ source "$(dirname "$0")/config.sh"

COMMAND=$1

if git describe --exact-match >/dev/null; then
VERSION=$(git describe --dirty)
if git describe --tags --exact-match >/dev/null; then
VERSION=$(git describe --tags --dirty)
else
VERSION=$(git describe --tags --abbrev=0 --dirty)+dev.$(git rev-parse HEAD)
fi
Expand Down

0 comments on commit eb02fb2

Please sign in to comment.