]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fetch.c
Merge branch 'ds/fetch-bundle-uri-with-all'
[thirdparty/git.git] / builtin / fetch.c
index 662a842479c0810c799a3caa408e2449260ed7bf..85bd2801036a8401a096043e26db1aeadc44d325 100644 (file)
@@ -1967,7 +1967,12 @@ static int fetch_multiple(struct string_list *list, int max_children)
                        return errcode;
        }
 
-       strvec_pushl(&argv, "fetch", "--append", "--no-auto-gc",
+       /*
+        * Cancel out the fetch.bundleURI config when running subprocesses,
+        * to avoid fetching from the same bundle list multiple times.
+        */
+       strvec_pushl(&argv, "-c", "fetch.bundleURI=",
+                    "fetch", "--append", "--no-auto-gc",
                     "--no-write-commit-graph", NULL);
        add_options_to_argv(&argv);