]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/clone-unborn-confusion' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 5 Aug 2022 22:51:35 +0000 (15:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Aug 2022 22:51:35 +0000 (15:51 -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.
source: <YsdyLS4UFzj0j/wB@coredump.intra.peff.net>

* 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