Skip to content

Commit e013787

Browse files
chriscoolgitster
authored andcommitted
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>
1 parent 268fbcd commit e013787

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

builtin/fetch.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,8 @@ static inline void fetch_one_setup_partial(struct remote *remote)
13321332
*/
13331333
if (strcmp(remote->name, repository_format_partial_clone)) {
13341334
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"));
13361337
return;
13371338
}
13381339

@@ -1500,7 +1501,8 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
15001501
result = fetch_one(remote, argc, argv, prune_tags_ok);
15011502
} else {
15021503
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"));
15041506
/* TODO should this also die if we have a previous partial-clone? */
15051507
result = fetch_multiple(&list);
15061508
}

0 commit comments

Comments
 (0)