[PATCH] Add a function for getting a struct tree for an ent.
[gitweb.git] / 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