From 866ff2f7ce60519e562a6ae37886609c69d5eb70 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 10 Sep 2005 10:40:47 -0700 Subject: [PATCH] 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 --- git-fetch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/git-fetch.sh b/git-fetch.sh index 4928cd5bed..673a184179 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 -- 2.11.4.GIT