Commit 0ee17688 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: add support for any version prefix in a git tag

parent 055115be
......@@ -537,6 +537,10 @@ do
for i in v$GSSETVERSION $alternate_tag1 $GSSETVERSION $alternate_tag2 $alternate_tag3 ; do
git rev-parse $i >/dev/null 2>/dev/null && docmd git merge $i && rc=0 && break
done
if [ "$rc" = "1" ] ; then
i="$(git tag | grep "$GSSETVERSION\$")"
git rev-parse $i >/dev/null 2>/dev/null && docmd git merge $i && rc=0
fi
[ "$rc" = "0" ] || fatal "Can't find tag for $GSSETVERSION version"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment