]> git.ipfire.org Git - thirdparty/git.git/blobdiff - list-objects-filter-options.c
Merge branch 'bc/sha-256-part-2'
[thirdparty/git.git] / list-objects-filter-options.c
index 256bcfbdfe666db068599baeb8aae4c09a3ac8fb..3553ad7b0a759e13258a267960caf2ee15b6f019 100644 (file)
@@ -326,7 +326,8 @@ void partial_clone_register(
 
        /* Check if it is already registered */
        if (!promisor_remote_find(remote)) {
-               git_config_set("core.repositoryformatversion", "1");
+               if (upgrade_repository_format(1) < 0)
+                       die(_("unable to upgrade repository format to support partial clone"));
 
                /* Add promisor config for the remote */
                cfg_name = xstrfmt("remote.%s.promisor", remote);