From: Stefan Beller Date: Tue, 06 Feb 2018 00:16:38 GMT Subject: [PATCH 123/194] streaming: allow open_istream_incore to handle arbitrary repositories Message-ID: <20180206001749.218943-25-sbeller@google.com> In-Reply-To: <20180206001749.218943-1-sbeller@google.com> Signed-off-by: Jonathan Nieder Signed-off-by: Stefan Beller --- streaming.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/streaming.c b/streaming.c index cb7f8b2042..94651ffbf0 100644 --- a/streaming.c +++ b/streaming.c @@ -500,10 +500,7 @@ static struct stream_vtbl incore_vtbl = { static open_method_decl(incore) { - if (r != the_repository) - BUG("r != the_repository"); - - st->u.incore.buf = read_sha1_file_extended(the_repository, sha1, + st->u.incore.buf = read_sha1_file_extended(r, sha1, type, &st->size, 0); st->u.incore.read_ptr = 0; st->vtbl = &incore_vtbl; -- 2.15.1.433.g936d1b9894.dirty