summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-10 17:40:47 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-10 17:40:47 (GMT)
commit866ff2f7ce60519e562a6ae37886609c69d5eb70 (patch)
tree9b45d940a8b5e3046f40bf881bb32bc54a46283b
parentd5e34380afcc98764a10a078b9fe7033795d14b1 (diff)
downloadgit-866ff2f7ce60519e562a6ae37886609c69d5eb70.zip
git-866ff2f7ce60519e562a6ae37886609c69d5eb70.tar.gz
git-866ff2f7ce60519e562a6ae37886609c69d5eb70.tar.bz2
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>
-rwxr-xr-xgit-fetch.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 4928cd5..673a184 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