@matheusbsbs / matheus-bagliano / commits / 367337040d
Fork 0

Do not create tag leading directories since git update-ref does it.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Christian Couder committed Oct 2, 2006 at 06:36 UTC 367337040d8d39294bf676672dfefc542717195b
1 file changed +2 -3
git-tag.sh
+2 -3
@@ -112,6 +112,5 @@ if [ "$annotate" ]; then
112 object=$(git-mktag < "$GIT_DIR"/TAG_TMP)
113 fi
114
115 -leading=`expr "refs/tags/$name" : '\(.*\)/'` &&
116 -mkdir -p "$GIT_DIR/$leading" &&
117 -GIT_DIR="$GIT_DIR" git update-ref "refs/tags/$name" "$object" "$prev"
115 +git update-ref "refs/tags/$name" "$object" "$prev"
116 +