From: Junio C Hamano Date: Sat, 10 Sep 2005 17:40:47 +0000 (-0700) Subject: Make sure we have leading directories under refs/{heads,tags} X-Git-Tag: v0.99.7~96 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=866ff2f7ce60519e562a6ae37886609c69d5eb70;p=git.git Make sure we have leading directories under refs/{heads,tags} Otherwise having subdirectories under refs/heads becomes rather unwieldy. Signed-off-by: Junio C Hamano --- diff --git a/git-fetch.sh b/git-fetch.sh index 4928cd5b..673a1841 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -94,6 +94,7 @@ append_fetch_head () { } fast_forward_local () { + mkdir -p "$(dirname "$GIT_DIR/$1")" case "$1" in refs/tags/*) # Tags need not be pointing at commits so there