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:
@ -94,6 +94,7 @@ append_fetch_head () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fast_forward_local () {
|
fast_forward_local () {
|
||||||
|
mkdir -p "$(dirname "$GIT_DIR/$1")"
|
||||||
case "$1" in
|
case "$1" in
|
||||||
refs/tags/*)
|
refs/tags/*)
|
||||||
# Tags need not be pointing at commits so there
|
# Tags need not be pointing at commits so there
|
||||||
|
Reference in New Issue
Block a user