diff options
author | Christian Couder <christian.couder@gmail.com> | 2019-01-13 08:52:19 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-14 18:49:09 (GMT) |
commit | e01378753d42de16e03dc378c9848b22dfa1dd4f (patch) | |
tree | ec3215ad9d0769936d14cd8654fcd9fd0b9c90aa | |
parent | 268fbcd172cdb306e8a3e7143cc16677c963d6cd (diff) | |
download | git-e01378753d42de16e03dc378c9848b22dfa1dd4f.zip git-e01378753d42de16e03dc378c9848b22dfa1dd4f.tar.gz git-e01378753d42de16e03dc378c9848b22dfa1dd4f.tar.bz2 |
fetch: fix extensions.partialclone name in error message
There is "extensions.partialclone" and "core.partialCloneFilter", but
not "core.partialclone". Only "extensions.partialclone" is meant to
contain a remote name.
While at it, let's wrap the relevant code lines to keep them at a
reasonable length.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | builtin/fetch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index ea5b966..b930ade 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1332,7 +1332,8 @@ static inline void fetch_one_setup_partial(struct remote *remote) */ if (strcmp(remote->name, repository_format_partial_clone)) { if (filter_options.choice) - die(_("--filter can only be used with the remote configured in core.partialClone")); + die(_("--filter can only be used with the remote " + "configured in extensions.partialclone")); return; } @@ -1500,7 +1501,8 @@ int cmd_fetch(int argc, const char **argv, const char *prefix) result = fetch_one(remote, argc, argv, prune_tags_ok); } else { if (filter_options.choice) - die(_("--filter can only be used with the remote configured in core.partialClone")); + die(_("--filter can only be used with the remote " + "configured in extensions.partialclone")); /* TODO should this also die if we have a previous partial-clone? */ result = fetch_multiple(&list); } |