Merge branch 'jt/clone-unborn-head'
commit69571dfe219f48614e0e0ae7e28efae0be297764
authorJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 01:21:40 +0000 (17 17:21 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 01:21:40 +0000 (17 17:21 -0800)
tree74213c28659aa3dbcb9ad78a9a6bd946d0c5f6dd
parent0871fb9af5aa03a56c42a9257589248624d75eb8
parent4f37d45706514a4b3d0259d26f719678a0cf3521
Merge branch 'jt/clone-unborn-head'

"git clone" tries to locally check out the branch pointed at by
HEAD of the remote repository after it is done, but the protocol
did not convey the information necessary to do so when copying an
empty repository.  The protocol v2 learned how to do so.

* jt/clone-unborn-head:
  clone: respect remote unborn HEAD
  connect, transport: encapsulate arg in struct
  ls-refs: report unborn targets of symrefs
builtin/clone.c
builtin/fetch.c
connect.c
ls-refs.c
remote.h
t/t5606-clone-options.sh
t/t5701-git-serve.sh
t/t5702-protocol-v2.sh