From baf523ae3c87f1621fc7176cee311ce7b860e75b Mon Sep 17 00:00:00 2001 From: Stephen Haberman Date: Mon, 25 Aug 2008 11:32:29 -0500 Subject: [PATCH] Fix tags and short_refname assignment. --- server/update-ensure-tag-in-branch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.39.5