]> git.ipfire.org Git - thirdparty/git.git/commit
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)
commitcf92cb29e92bd442c5092e677a7e49e021344e65
tree878fbb403e3baa5ff726344d4598300b60cc5823
parent99c0d94eaa81e3579121c539e0ca37483dbab51e
parentdaf7898abbadef81b120f455323066158514d61b
Merge branch 'jk/clone-unborn-confusion'

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