Skip to content

Commit

Permalink
Do not create tag leading directories since git update-ref does it.
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Christian Couder authored and Junio C Hamano committed Oct 2, 2006
1 parent b431b28 commit 3673370
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions git-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3673370

Please sign in to comment.