aboutsummaryrefslogtreecommitdiff
path: root/git-tag.sh
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2006-10-02 06:36:15 +0200
committerJunio C Hamano <junkio@cox.net>2006-10-01 21:42:20 -0700
commit367337040d8d39294bf676672dfefc542717195b (patch)
treec68610e145a5738fa96261e5f161c812e55da0b2 /git-tag.sh
parentb431b2822f361efcb940adbc1f2097e122e90ed9 (diff)
downloadgit-367337040d8d39294bf676672dfefc542717195b.tar.gz
git-367337040d8d39294bf676672dfefc542717195b.tar.xz
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>
Diffstat (limited to 'git-tag.sh')
-rwxr-xr-xgit-tag.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/git-tag.sh b/git-tag.sh
index a3f1819b0..ac269e327 100755
--- a/git-tag.sh
+++ b/git-tag.sh
@@ -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"
+