]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bundle-uri.c
bundle: add flags to verify_bundle()
[thirdparty/git.git] / bundle-uri.c
index 70bfd2defeed41d4defb7422e445f4af379854e5..d9060be707e3a1e279d27d3c108d72dd5b938ba1 100644 (file)
@@ -303,7 +303,12 @@ static int unbundle_from_file(struct repository *r, const char *file)
        if ((bundle_fd = read_bundle_header(file, &header)) < 0)
                return 1;
 
-       if ((result = unbundle(r, &header, bundle_fd, NULL)))
+       /*
+        * Skip the reachability walk here, since we will be adding
+        * a reachable ref pointing to the new tips, which will reach
+        * the prerequisite commits.
+        */
+       if ((result = unbundle(r, &header, bundle_fd, NULL, 0)))
                return 1;
 
        /*