If the SEEN flag was not set, the TO_SCAN flag cannot be set,
therefore testing it is pointless.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
if (has_sha1_file(obj->sha1)) {
parse_object(obj->sha1);
/* We already have it, so we should scan it now. */
if (has_sha1_file(obj->sha1)) {
parse_object(obj->sha1);
/* We already have it, so we should scan it now. */
- if (obj->flags & TO_SCAN)
- return 0;
obj->flags |= TO_SCAN;
} else {
if (obj->flags & COMPLETE)
obj->flags |= TO_SCAN;
} else {
if (obj->flags & COMPLETE)