Skip to content

Commit

Permalink
git show-ref works in more cases than git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Sep 13, 2012
1 parent e8fde26 commit 248b2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/git/post-receive
Expand Up @@ -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
Expand Down

0 comments on commit 248b2a1

Please sign in to comment.