Make sure we have leading directories under refs/{heads,tags}
authorJunio C Hamano <junkio@cox.net>
Sat, 10 Sep 2005 17:40:47 +0000 (10:40 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 10 Sep 2005 17:40:47 +0000 (10:40 -0700)
Otherwise having subdirectories under refs/heads becomes rather
unwieldy.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh

index 4928cd5bed7dd6a5bd4653f51a45c611bf8e9379..673a1841793ff5cd5b3422471dfaebf049b5b63e 100755 (executable)
@@ -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