]> git.ipfire.org Git - thirdparty/git.git/commit - transport.h
clone: respect remote unborn HEAD
authorJonathan Tan <jonathantanmy@google.com>
Fri, 5 Feb 2021 20:48:49 +0000 (12:48 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Feb 2021 21:49:55 +0000 (13:49 -0800)
commit4f37d45706514a4b3d0259d26f719678a0cf3521
tree2b38899f23f3e5e88b72fba0f093e8fb76255089
parent39835409d10de2402c4b3e10dba20286989627d4
clone: respect remote unborn HEAD

Teach Git to use the "unborn" feature introduced in a previous patch as
follows: Git will always send the "unborn" argument if it is supported
by the server. During "git clone", if cloning an empty repository, Git
will use the new information to determine the local branch to create. In
all other cases, Git will ignore it.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/init.txt
builtin/clone.c
connect.c
t/t5606-clone-options.sh
t/t5702-protocol-v2.sh
transport.h