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 4928cd5..673a184 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