mirror of
https://github.com/git/git.git
synced 2024-11-05 16:52:59 +01:00
[PATCH] fetch.c: Remove redundant test of TO_SCAN in process()
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>
This commit is contained in:
parent
5de0bfffbc
commit
a85988d292
1 changed files with 0 additions and 2 deletions
2
fetch.c
2
fetch.c
|
@ -136,8 +136,6 @@ static int process(struct object *obj)
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue