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:
parent
b431b2822f
commit
367337040d
@ -112,6 +112,5 @@ if [ "$annotate" ]; then
|
|||||||
object=$(git-mktag < "$GIT_DIR"/TAG_TMP)
|
object=$(git-mktag < "$GIT_DIR"/TAG_TMP)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
leading=`expr "refs/tags/$name" : '\(.*\)/'` &&
|
git update-ref "refs/tags/$name" "$object" "$prev"
|
||||||
mkdir -p "$GIT_DIR/$leading" &&
|
|
||||||
GIT_DIR="$GIT_DIR" git update-ref "refs/tags/$name" "$object" "$prev"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user