From: Nguyễn Thái Ngọc Duy Date: Mon, 05 Apr 2010 18:41:18 GMT Subject: [PATCH 33/43] apply: do not check sha1 if there is no repository Message-ID: <1270492888-26589-34-git-send-email-pclouds@gmail.com> In-Reply-To: <1270492888-26589-1-git-send-email-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- builtin/apply.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/builtin/apply.c b/builtin/apply.c index bb957d4..0f269aa 100644 --- a/builtin/apply.c +++ b/builtin/apply.c @@ -2546,7 +2546,7 @@ static int apply_binary(struct image *img, struct patch *patch) return 0; /* deletion patch */ } - if (has_sha1_file(sha1)) { + if (startup_info->have_repository && has_sha1_file(sha1)) { /* We already have the postimage */ enum object_type type; unsigned long size; -- 1.7.0.rc1.541.g2da82.dirty