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>maint
parent
b431b2822f
commit
367337040d
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue