]> git.ipfire.org Git - thirdparty/git.git/blobdiff - promisor-remote.c
Merge branch 'jt/t5500-unflake'
[thirdparty/git.git] / promisor-remote.c
index 9f338c945faf997a11d2a55065ddbc14d8be6cdc..baaea12fd69b3b2c86f9fe5308a06c65e2eff3eb 100644 (file)
@@ -101,7 +101,7 @@ static void promisor_remote_move_to_tail(struct promisor_remote *r,
 static int promisor_remote_config(const char *var, const char *value, void *data)
 {
        const char *name;
-       int namelen;
+       size_t namelen;
        const char *subkey;
 
        if (!strcmp(var, "core.partialclonefilter"))
@@ -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) {