1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-27 17:10:35 +02:00

fetch() assumes we do not have the object.

Bugfix for the previous one.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-09-18 14:11:53 -07:00
parent 85d106c267
commit 029f6de377

View File

@ -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);