From: Stephen Haberman Date: Mon, 25 Aug 2008 16:32:29 +0000 (-0500) Subject: Fix tags and short_refname assignment. X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=baf523ae3c87f1621fc7176cee311ce7b860e75b;p=git-central.git Fix tags and short_refname assignment. --- diff --git a/server/update-ensure-tag-in-branch b/server/update-ensure-tag-in-branch index f45f3ef..bab1eef 100644 --- a/server/update-ensure-tag-in-branch +++ b/server/update-ensure-tag-in-branch @@ -9,12 +9,12 @@ newrev="$3" # Only interested in tags case "$refname" in - refs/tags/*) - short_refname=${BASH_REMATCH[1]} - ;; - *) - exit 0 - ;; + refs/tags/*) + short_refname=${refname##refs/tags/} + ;; + *) + exit 0 + ;; esac # Except if they're getting deleted