@matheusbsbs / matheus-bagliano / commits / 866ff2f7ce
Fork 0

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>

Junio C Hamano committed Sep 10, 2005 at 10:40 UTC 866ff2f7ce60519e562a6ae37886609c69d5eb70
1 file changed +1
git-fetch.sh
+1
@@ -94,6 +94,7 @@ append_fetch_head () {
94 }
95
96 fast_forward_local () {
97 + mkdir -p "$(dirname "$GIT_DIR/$1")"
98 case "$1" in
99 refs/tags/*)
100 # Tags need not be pointing at commits so there