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>
This commit is contained in:
parent
d5e34380af
commit
866ff2f7ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user