commit e2f84af473bb6887ac1d0317ece787fc4364b23a from: Stefan Sperling date: Wed Mar 18 16:11:30 2020 UTC remove got_has_object() for now; this would require imsg to main process commit - 4ba321e7535bfa8365fbb77922293c473f0bea01 commit + e2f84af473bb6887ac1d0317ece787fc4364b23a blob - 225b38877438194ee3a4f7d7843db40dd3553a8f blob + 9450b19de04927b73300672b3de93b7ef9fe7dee --- libexec/got-fetch-pack/got-fetch-pack.c +++ libexec/got-fetch-pack/got-fetch-pack.c @@ -193,13 +193,6 @@ check_pack_hash(int fd, size_t sz, uint8_t *hcomp) return 0; } -int -got_has_object(struct got_object_id *obj) -{ - /* TODO */ - return 0; -} - static int match_branch(char *br, char *pat) { @@ -476,8 +469,6 @@ fetch_pack(int fd, int packfd, struct got_object_id *p for (i = 0; i < nref; i++) { if (got_object_id_cmp(&have[i], &want[i]) == 0) continue; - if (got_has_object(&want[i])) - continue; got_sha1_digest_to_str(want[i].sha1, hashstr, sizeof(hashstr)); n = snprintf(buf, sizeof(buf), "want %s%s%s\n", hashstr, i == 0 && my_capabilities ? " " : "",