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>
This commit is contained in:
Christian Couder 2006-10-02 06:36:15 +02:00 committed by Junio C Hamano
parent b431b2822f
commit 367337040d

View file

@ -112,6 +112,5 @@ if [ "$annotate" ]; then
object=$(git-mktag < "$GIT_DIR"/TAG_TMP)
fi
leading=`expr "refs/tags/$name" : '\(.*\)/'` &&
mkdir -p "$GIT_DIR/$leading" &&
GIT_DIR="$GIT_DIR" git update-ref "refs/tags/$name" "$object" "$prev"
git update-ref "refs/tags/$name" "$object" "$prev"