fetch() assumes we do not have the object.
Bugfix for the previous one. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Sep 18, 2005 at 14:11 UTC
029f6de377c7e0484f5c4cf070934599580f1784
1 file changed
+1
-1
fetch.c
+1
-1
@@ -174,7 +174,7 @@ static int loop(void)
174
* the queue because we needed to fetch it first.
175
*/
176
if (! (obj->flags & TO_SCAN)) {
177
- if (fetch(obj->sha1)) {
177
+ if (!has_sha1_file(obj->sha1) && fetch(obj->sha1)) {
178
report_missing(obj->type
179
? obj->type
180
: "object", obj->sha1);