diff options
author | Junio C Hamano <junkio@cox.net> | 2005-09-10 10:40:47 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-10 10:40:47 -0700 |
commit | 866ff2f7ce60519e562a6ae37886609c69d5eb70 (patch) | |
tree | 9b45d940a8b5e3046f40bf881bb32bc54a46283b | |
parent | [PATCH] Documentation/repository-layout.txt typo (diff) | |
download | tgif-866ff2f7ce60519e562a6ae37886609c69d5eb70.tar.xz |
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-x | git-fetch.sh | 1 |
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 |