]> git.ipfire.org Git - thirdparty/git.git/commit
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)
commitde28459136810bc12d4fd380e02b7fb8b5b49421
tree58477f0013b1f6fe77bf8e9dee0debe5844f945e
parent00d12607a27e387ad78b5957afa05e89c87e83a5
parentdaf7898abbadef81b120f455323066158514d61b
Merge branch 'jk/clone-unborn-confusion' into maint

"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
builtin/clone.c
t/t5605-clone-local.sh