threads / patch / 5784

patchDo not create tag leading directories since git update-ref does it.

Subject: [PATCH] Do not create tag leading directories since git update-ref does it.

## tl;dr

One message between Oct 2, 2006 and Oct 2, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Christian Couder· Oct 2, 2006, 04:36 UTC · lore
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 git-tag.sh |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
Show changes to git-tag.sh +2 −3
diff --git a/git-tag.sh b/git-tag.sh
index a3f1819..ac269e3 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"
+
-- 
1.4.2.2.gbcb49-dirty

← back to recent threads