]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/clone-unborn-confusion'
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 Jul 2022 23:40:17 +0000 (16:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jul 2022 23:40:17 +0000 (16:40 -0700)
"git clone" from a repository with some ref whose HEAD is unborn
did not set the HEAD in the resulting repository correctly, which
has been corrected.

* jk/clone-unborn-confusion:
  clone: move unborn head creation to update_head()
  clone: use remote branch if it matches default HEAD
  clone: propagate empty remote HEAD even with other branches
  clone: drop extra newline from warning message

1  2 
builtin/clone.c
t/t5605-clone-local.sh

diff --cc builtin/clone.c
Simple merge
Simple merge