]> git.ipfire.org Git - thirdparty/git.git/blobdiff - promisor-remote.c
Merge branch 'jt/t5500-unflake'
[thirdparty/git.git] / promisor-remote.c
index ff8721fd56680dcb3b92996ae7ea5e05655b526a..baaea12fd69b3b2c86f9fe5308a06c65e2eff3eb 100644 (file)
@@ -241,6 +241,9 @@ int promisor_remote_get_direct(struct repository *repo,
        int to_free = 0;
        int res = -1;
 
+       if (oid_nr == 0)
+               return 0;
+
        promisor_remote_init();
 
        for (r = promisors; r; r = r->next) {