Skip to content

Commit

Permalink
FIX: use commit count for revision
Browse files Browse the repository at this point in the history
User commit count for revision if no annotated revision tag found.
  • Loading branch information
kvishnivetsky committed Feb 20, 2017
1 parent a4f5a7f commit 43e6203
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/revision-gen
Expand Up @@ -30,7 +30,11 @@ if [ "$?" != "0" ]; then
VER_REV=v`git describe --abbrev=5 --match="${VERSION}" HEAD`
if [ "$?" != "0" ]; then
echo "Could not find tag $VERSION" 1>&2
exit 1
VER_REV=`git rev-list --all --count`
if [ "$?" != "0" ]; then
echo "Could not find tag $VERSION" 1>&2
exit 1
fi;
fi
fi
REV=`echo "${VER_REV}" | sed -e 's/^v[0-9\.]\+-//g' -e 's/-g\?/./g'`
Expand Down

0 comments on commit 43e6203

Please sign in to comment.