diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2017-12-14 21:44:44 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-14 22:28:02 (GMT) |
commit | 245abe34ac0622b349470b89d4b76a082a133cab (patch) | |
tree | 0d88e6d71ad63ee26d1c94f889765a2f9cdadd1d /transport.c | |
parent | 170078693fcccd614406e1c3c9fcbea8aaba0c13 (diff) | |
download | git-245abe34ac0622b349470b89d4b76a082a133cab.zip git-245abe34ac0622b349470b89d4b76a082a133cab.tar.gz git-245abe34ac0622b349470b89d4b76a082a133cab.tar.bz2 |
clone, fetch: remove redundant transport check
Prior to commit a2d725b7bdf7 ("Use an external program to implement
fetching with curl", 2009-08-05), if Git was compiled with NO_CURL, the
get_refs_list and fetch methods in struct transport might not be
populated, hence the checks in clone and fetch. After that commit, all
transports populate get_refs_list and fetch, making the checks in clone
and fetch redundant. Remove those checks.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
0 files changed, 0 insertions, 0 deletions