summaryrefslogtreecommitdiff
path: root/builtin/send-pack.c
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-05 20:02:33 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-10 16:14:16 -0800
commitb06dcd7d6829c86afda6b311cadf009ee4b4dd59 (patch)
tree6db0d883cc38fb1ed50038df1e880f6c7616d0f2 /builtin/send-pack.c
parentmake the sender advertise shallow commits to the receiver (diff)
downloadtgif-b06dcd7d6829c86afda6b311cadf009ee4b4dd59.tar.xz
connect.c: teach get_remote_heads to parse "shallow" lines
No callers pass a non-empty pointer as shallow_points at this stage. As a result, all clients still refuse to talk to shallow repository on the other end. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/send-pack.c')
-rw-r--r--builtin/send-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/send-pack.c b/builtin/send-pack.c
index 961df04dea..62cc4d3681 100644
--- a/builtin/send-pack.c
+++ b/builtin/send-pack.c
@@ -232,7 +232,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
args.verbose ? CONNECT_VERBOSE : 0);
}
- get_remote_heads(fd[0], NULL, 0, &remote_refs, REF_NORMAL, &extra_have);
+ get_remote_heads(fd[0], NULL, 0, &remote_refs, REF_NORMAL, &extra_have, NULL);
transport_verify_remote_names(nr_refspecs, refspecs);