Browse Source

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
Christian Couder 19 years ago committed by Junio C Hamano
parent
commit
367337040d
  1. 5
      git-tag.sh

5
git-tag.sh

@ -112,6 +112,5 @@ if [ "$annotate" ]; then @@ -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…
Cancel
Save