]> git.droids-corp.org - git-central.git/commitdiff
Fix tags and short_refname assignment.
authorStephen Haberman <stephen@exigencecorp.com>
Mon, 25 Aug 2008 16:32:29 +0000 (11:32 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Mon, 25 Aug 2008 16:32:29 +0000 (11:32 -0500)
server/update-ensure-tag-in-branch

index f45f3ef637a838759d9a474280bf6abe58a3c359..bab1eef62004b13bb50c5cb4ecf5a2bcd956f9ac 100644 (file)
@@ -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