summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92e2eb9)
raw | patch | inline | side by side (parent: 92e2eb9)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 8 Nov 2005 00:22:34 +0000 (16:22 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 8 Nov 2005 00:34:04 +0000 (16:34 -0800) |
This is a companion patch to 13d1cc3604a1a64cb5a6025bba8af8b74a373963
commit, which made hierarchical branch name possible. "git tag
v0.99.9/a" would fail otherwise.
Signed-off-by: Junio C Hamano <junkio@cox.net>
commit, which made hierarchical branch name possible. "git tag
v0.99.9/a" would fail otherwise.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-tag.sh | patch | blob | history |
diff --git a/git-tag.sh b/git-tag.sh
index bd9275367405fa0b8c10a2e1394195cdbcfc632c..6130904a94ddeffb15b1b10ded8336c67112c12e 100755 (executable)
--- a/git-tag.sh
+++ b/git-tag.sh
object=$(git-mktag < "$GIT_DIR"/TAG_TMP)
fi
-mkdir -p "$GIT_DIR/refs/tags"
+leading=`expr "refs/tags/$name" : '\(.*\)/'` &&
+mkdir -p "$GIT_DIR/$leading" &&
echo $object > "$GIT_DIR/refs/tags/$name"