summaryrefslogtreecommitdiff
path: root/git-fetch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-10 10:40:47 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-10 10:40:47 -0700
commit866ff2f7ce60519e562a6ae37886609c69d5eb70 (patch)
tree9b45d940a8b5e3046f40bf881bb32bc54a46283b /git-fetch.sh
parentd5e34380afcc98764a10a078b9fe7033795d14b1 (diff)
downloadgit-866ff2f7ce60519e562a6ae37886609c69d5eb70.tar.gz
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 <junkio@cox.net>
Diffstat (limited to 'git-fetch.sh')
-rwxr-xr-xgit-fetch.sh1
1 files changed, 1 insertions, 0 deletions
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