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 f45f3ef..bab1eef 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