author | Daniel Barkalow <barkalow@iabervon.org> | |
Mon, 4 Feb 2008 18:26:23 +0000 (13:26 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 5 Feb 2008 08:40:18 +0000 (00:40 -0800) | ||
commit | ba227857d24029917f1e939647d826037f026205 | |
tree | cca24f21c147cb784f4bc3f0ae04916d829b6140 | tree | snapshot |
parent | 7a2078b4b00fb1c5d7b0bf8155778f79377b8f2f | commit | diff |
Reduce the number of connects when fetching
This shares the connection between getting the remote ref list and
getting objects in the first batch. (A second connection is still used
to follow tags).
When we do not fetch objects (i.e. either ls-remote disconnects after
getting list of refs, or we decide we are already up-to-date), we
clean up the connection properly; otherwise the connection is left
open in need of cleaning up to avoid getting an error message from
the remote end when ssh is used.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This shares the connection between getting the remote ref list and
getting objects in the first batch. (A second connection is still used
to follow tags).
When we do not fetch objects (i.e. either ls-remote disconnects after
getting list of refs, or we decide we are already up-to-date), we
clean up the connection properly; otherwise the connection is left
open in need of cleaning up to avoid getting an error message from
the remote end when ssh is used.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch-pack.c | diff | blob | history | |
builtin-fetch.c | diff | blob | history | |
builtin-ls-remote.c | diff | blob | history | |
fetch-pack.h | diff | blob | history | |
transport.c | diff | blob | history |