From: Arran Cudbard-Bell Date: Thu, 13 Sep 2012 18:21:46 +0000 (+0100) Subject: git show-ref works in more cases than git tag X-Git-Tag: release_3_0_0_beta1~1715 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=248b2a1aa22ea31e2b4b0d36f118af1f8dbd6e5f;p=thirdparty%2Ffreeradius-server.git git show-ref works in more cases than git tag --- diff --git a/scripts/git/post-receive b/scripts/git/post-receive index 753c5053820..ce890175bd9 100755 --- a/scripts/git/post-receive +++ b/scripts/git/post-receive @@ -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