diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-08 01:22:34 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-08 01:34:04 +0100 |
commit | 52963a7a3fad7f3da7b4ec49824d92338a2ab668 (patch) | |
tree | c0f56a070b4d5c6b68449062b030ffd3e65372c0 | |
parent | Small bugfixes for http-push.c (diff) | |
download | git-52963a7a3fad7f3da7b4ec49824d92338a2ab668.tar.xz git-52963a7a3fad7f3da7b4ec49824d92338a2ab668.zip |
Do not fail on hierarchical tagnames.
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>
-rwxr-xr-x | git-tag.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git-tag.sh b/git-tag.sh index bd92753674..6130904a94 100755 --- a/git-tag.sh +++ b/git-tag.sh @@ -92,5 +92,6 @@ if [ "$annotate" ]; then 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" |