path: root/builtin/fetch.c
diff options
authorJunio C Hamano <>2020-06-29 21:17:24 (GMT)
committerJunio C Hamano <>2020-06-29 21:17:24 (GMT)
commit1033b982914206285fb7ee772cd29f7c60c4f929 (patch)
treedfae7465da8c987e8085ff6daccee6312505cc15 /builtin/fetch.c
parentf402ea68166bd77f09b176c96005ac7f8886e14b (diff)
parent14c7fa269e42df4133edd9ae7763b678ed6594cd (diff)
Merge branch 'xl/upgrade-repo-format'
Allow runtime upgrade of the repository format version, which needs to be done carefully. There is a rather unpleasant backward compatibility worry with the last step of this series, but it is the right thing to do in the longer term. * xl/upgrade-repo-format: check_repository_format_gently(): refuse extensions for old repositories sparse-checkout: upgrade repository to version 1 when enabling extension fetch: allow adding a filter after initial clone repository: add a helper function to perform repository format upgrade
Diffstat (limited to 'builtin/fetch.c')
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index da11165..82ac4be 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -1795,9 +1795,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
if (depth || deepen_since ||
deepen = 1;
- if (filter_options.choice && !has_promisor_remote())
- die("--filter can only be used when extensions.partialClone is set");
if (all) {
if (argc == 1)
die(_("fetch --all does not take a repository argument"));