summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Vlasov <vsu@altlinux.ru>2005-09-21 16:34:19 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-23 04:52:11 (GMT)
commit2449696bcd8b458ae604c35898ecab7271b97b40 (patch)
treeeaa92c9bb84995e22a312ef39e91e9d970ae1d29
parent7b64d06b2e74612a0970c8563845cb9ee34724af (diff)
downloadgit-2449696bcd8b458ae604c35898ecab7271b97b40.zip
git-2449696bcd8b458ae604c35898ecab7271b97b40.tar.gz
git-2449696bcd8b458ae604c35898ecab7271b97b40.tar.bz2
[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>
-rw-r--r--fetch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fetch.c b/fetch.c
index 3074f5f..21b373d 100644
--- a/fetch.c
+++ b/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)