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>
Christian Couder committed
Jan 13, 2019 at 09:52 UTC
e01378753d42de16e03dc378c9848b22dfa1dd4f
1 file changed
+4
-2
builtin/fetch.c
+4
-2
@@ -1332,7 +1332,8 @@ static inline void fetch_one_setup_partial(struct remote *remote)
1332
*/
1333
if (strcmp(remote->name, repository_format_partial_clone)) {
1334
if (filter_options.choice)
1335
- die(_("--filter can only be used with the remote configured in core.partialClone"));
1335
+ die(_("--filter can only be used with the remote "
1336
+ "configured in extensions.partialclone"));
1337
return;
1338
}
1339
@@ -1500,7 +1501,8 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
1501
result = fetch_one(remote, argc, argv, prune_tags_ok);
1502
} else {
1503
if (filter_options.choice)
1503
- die(_("--filter can only be used with the remote configured in core.partialClone"));
1504
+ die(_("--filter can only be used with the remote "
1505
+ "configured in extensions.partialclone"));
1506
/* TODO should this also die if we have a previous partial-clone? */
1507
result = fetch_multiple(&list);
1508
}