mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
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)
|
||||
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
Block a user