From ba227857d24029917f1e939647d826037f026205 Mon Sep 17 00:00:00 2001 From: Daniel Barkalow Date: Mon, 4 Feb 2008 13:26:23 -0500 Subject: 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 Signed-off-by: Junio C Hamano --- fetch-pack.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fetch-pack.h') diff --git a/fetch-pack.h b/fetch-pack.h index a7888ea302..8d35ef60bf 100644 --- a/fetch-pack.h +++ b/fetch-pack.h @@ -16,6 +16,8 @@ struct fetch_pack_args }; struct ref *fetch_pack(struct fetch_pack_args *args, + int fd[], struct child_process *conn, + const struct ref *ref, const char *dest, int nr_heads, char **heads, -- cgit v1.2.3