]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
transport: use get_refs_via_connect to get refs
authorBrandon Williams <bmwill@google.com>
Wed, 14 Mar 2018 18:31:43 +0000 (11:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Mar 2018 21:15:06 +0000 (14:15 -0700)
commit635365eb2f67bc17482c5dbe076f20832cf92ae2
tree93511a97a48b77cb000caaf4d6d3245b6f8c02f7
parentae2948f30c7de56e2805d26f78ea8205f6c98682
transport: use get_refs_via_connect to get refs

Remove code duplication and use the existing 'get_refs_via_connect()'
function to retrieve a remote's heads in 'fetch_refs_via_pack()' and
'git_transport_push()'.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c