aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-fetch.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 4928cd5be..673a18417 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