X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=promisor-remote.c;h=baaea12fd69b3b2c86f9fe5308a06c65e2eff3eb;hp=ff8721fd56680dcb3b92996ae7ea5e05655b526a;hb=ac140beebe11adbca5801c225e87802d706590c4;hpb=ed9aa096bb0cc27e365803388bef62afc89a1192 diff --git a/promisor-remote.c b/promisor-remote.c index ff8721fd56..baaea12fd6 100644 --- a/promisor-remote.c +++ b/promisor-remote.c @@ -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) {