]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
git show-ref works in more cases than git tag
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 13 Sep 2012 18:21:46 +0000 (19:21 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 13 Sep 2012 18:22:44 +0000 (19:22 +0100)
scripts/git/post-receive

index 753c50538205fe9581738aaa03fd083d3afa78df..ce890175bd92cd88279bff792d55f7d15f31b5e8 100755 (executable)
@@ -45,7 +45,7 @@ status () {
 
 conf_rollback () {
        # Use stable tag if it exists...
-       if $GIT_EXEC tag -v $STABLE_TAG > /dev/null 2>&1; then
+       if $GIT_EXEC show-ref $STABLE_TAG > /dev/null 2>&1; then
                echo -n "Attempting to roll config back to tag: \"$STABLE_TAG\"... "
                $GIT_EXEC reset --hard $STABLE_TAG; ret=$?
        else