From: Christian Couder Date: Mon, 2 Oct 2006 04:36:15 +0000 (+0200) Subject: Do not create tag leading directories since git update-ref does it. X-Git-Tag: v1.4.4-rc1~44^2~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=367337040d8d39294bf676672dfefc542717195b;p=git.git Do not create tag leading directories since git update-ref does it. Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- 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" +