summaryrefslogtreecommitdiff
path: root/t/helper/test-subprocess.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Tan <jonathantanmy@google.com>2018-09-27 12:24:07 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-07 09:53:21 +0900
commite70a3030e747312327a4f3619247bf8a986aa577 (patch)
tree595256e117267f0dd72e9e7c75104efc9fd62dd4 /t/helper/test-subprocess.c
parenttransport: list refs before fetch if necessary (diff)
downloadtgif-e70a3030e747312327a4f3619247bf8a986aa577.tar.xz
fetch: do not list refs if fetching only hashes
If only hash literals are given on a "git fetch" command-line, tag following is not requested, and the fetch is done using protocol v2, a list of refs is not required from the remote. Therefore, optimize by invoking transport_get_remote_refs() only if we need the refs. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-subprocess.c')
0 files changed, 0 insertions, 0 deletions