Skip to content

Commit

Permalink
Make sure we have leading directories under refs/{heads,tags}
Browse files Browse the repository at this point in the history
Otherwise having subdirectories under refs/heads becomes rather
unwieldy.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Sep 10, 2005
1 parent d5e3438 commit 866ff2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 866ff2f

Please sign in to comment.