From 029f6de377c7e0484f5c4cf070934599580f1784 Mon Sep 17 00:00:00 2001
From: Junio C Hamano <junkio@cox.net>
Date: Sun, 18 Sep 2005 14:11:53 -0700
Subject: [PATCH] fetch() assumes we do not have the object.

Bugfix for the previous one.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 fetch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fetch.c b/fetch.c
index 1d95ce0cc..af9a013bd 100644
--- a/fetch.c
+++ b/fetch.c
@@ -174,7 +174,7 @@ static int loop(void)
 		 * the queue because we needed to fetch it first.
 		 */
 		if (! (obj->flags & TO_SCAN)) {
-			if (fetch(obj->sha1)) {
+			if (!has_sha1_file(obj->sha1) && fetch(obj->sha1)) {
 				report_missing(obj->type
 					       ? obj->type
 					       : "object", obj->sha1);
-- 
2.26.2