X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=ssh-fetch.c;h=b006c5c9802d96bc504188e10a9698a1f943477c;hb=2eff14259ea4035dc5f8a18f5998e88dd4da207e;hp=0b89df6ddae5cfdfa4259379fc801f5e28f7c403;hpb=8e3abd4c97b8e7e1128ad0cc44dcc267f478659a;p=git.git diff --git a/ssh-fetch.c b/ssh-fetch.c index 0b89df6dd..b006c5c98 100644 --- a/ssh-fetch.c +++ b/ssh-fetch.c @@ -67,7 +67,7 @@ int fetch(unsigned char *sha1) signed char remote; struct object_list *temp; - if (memcmp(sha1, in_transit->item->sha1, 20)) { + if (hashcmp(sha1, in_transit->item->sha1)) { /* we must have already fetched it to clean the queue */ return has_sha1_file(sha1) ? 0 : -1; }