diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-03 22:37:04 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-03 22:37:04 +0300 |
commit | b4100f366c1e5adf3a254cdc6f832aa1a4461053 (patch) | |
tree | 0cd253a268b0b06a09dd3cf17e60b666d67632d5 /remote-curl.c | |
parent | 3f02c0ad360d96e8dbba92f97b42ebbaa4319db1 (diff) | |
parent | db3c293ecded67128b74a03f01e65c6799ff1116 (diff) |
Merge branch 'jt/lazy-fetch'
Updates to on-demand fetching code in lazily cloned repositories.
* jt/lazy-fetch:
fetch: no FETCH_HEAD display if --no-write-fetch-head
fetch-pack: remove no_dependents code
promisor-remote: lazy-fetch objects in subprocess
fetch-pack: do not lazy-fetch during ref iteration
fetch: only populate existing_refs if needed
fetch: avoid reading submodule config until needed
fetch: allow refspecs specified through stdin
negotiator/noop: add noop fetch negotiator
Diffstat (limited to 'remote-curl.c')
-rw-r--r-- | remote-curl.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/remote-curl.c b/remote-curl.c index 0c1833dcb6..32cc4a0c55 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -43,7 +43,6 @@ struct options { /* see documentation of corresponding flag in fetch-pack.h */ from_promisor : 1, - no_dependents : 1, atomic : 1, object_format : 1; const struct git_hash_algo *hash_algo; @@ -193,9 +192,6 @@ static int set_option(const char *name, const char *value) } else if (!strcmp(name, "from-promisor")) { options.from_promisor = 1; return 0; - } else if (!strcmp(name, "no-dependents")) { - options.no_dependents = 1; - return 0; } else if (!strcmp(name, "filter")) { options.filter = xstrdup(value); return 0; @@ -1178,8 +1174,6 @@ static int fetch_git(struct discovery *heads, strvec_push(&args, "--deepen-relative"); if (options.from_promisor) strvec_push(&args, "--from-promisor"); - if (options.no_dependents) - strvec_push(&args, "--no-dependents"); if (options.filter) strvec_pushf(&args, "--filter=%s", options.filter); strvec_push(&args, url.buf); |