Skip to content

Commit

Permalink
maven-external-version - fetch all tags
Browse files Browse the repository at this point in the history
  • Loading branch information
inodb committed Dec 7, 2018
1 parent d7a98ac commit 8adb776
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ elif ! [ -x "$(command -v git)" ] || ! [ -d .git ]; then
# git is not installed, or not in a git repo
echo '0-unknown-version'
else
# fetch all tags silently
git fetch --tags --quiet > /dev/null 2> /dev/null
# get human readable commit id from git
git describe --tags --always --dirty | sed 's/^v//'
fi

0 comments on commit 8adb776

Please sign in to comment.