]> git.ipfire.org Git - thirdparty/git.git/blobdiff - promisor-remote.c
promisor-remote: accept 0 as oid_nr in function
[thirdparty/git.git] / promisor-remote.c
index 9f338c945faf997a11d2a55065ddbc14d8be6cdc..2155dfe657e87cf6b9d3832a4efe86b6f9f7fa23 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) {