diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2017-12-08 15:58:44 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-08 09:58:51 -0800 |
commit | acb0c57260aa78fc99939de2a27c48b5a3fb4f21 (patch) | |
tree | 8151fc92e1f890f826294aad2328bfe22468b1c4 /connected.c | |
parent | a1743343f410290578fbd6e0ada50b8cdf1e7df8 (diff) | |
download | git-acb0c57260aa78fc99939de2a27c48b5a3fb4f21.tar.gz |
fetch: support filters
Teach fetch to support filters. This is only allowed for the remote
configured in extensions.partialcloneremote.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'connected.c')
-rw-r--r-- | connected.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/connected.c b/connected.c index f416b05051..3a5bd67944 100644 --- a/connected.c +++ b/connected.c @@ -56,6 +56,8 @@ int check_connected(sha1_iterate_fn fn, void *cb_data, argv_array_push(&rev_list.args,"rev-list"); argv_array_push(&rev_list.args, "--objects"); argv_array_push(&rev_list.args, "--stdin"); + if (repository_format_partial_clone) + argv_array_push(&rev_list.args, "--exclude-promisor-objects"); argv_array_push(&rev_list.args, "--not"); argv_array_push(&rev_list.args, "--all"); argv_array_push(&rev_list.args, "--quiet"); |