Why does it mean we do not have to register shallow if we have one?
authorJunio C Hamano <junkio@cox.net>
Tue, 14 Nov 2006 06:04:56 +0000 (22:04 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 24 Nov 2006 23:42:49 +0000 (15:42 -0800)
fetch-pack.c

index 6fd457035ef7d5ea0e0a6104aa9c73b57c5d949b..d00573d02215a3c5fc1a537ff3b84ce11e0e12fd 100644 (file)
@@ -198,9 +198,6 @@ static int find_common(int fd[2], unsigned char *result_sha1,
                        if (!strncmp("shallow ", line, 8)) {
                                if (get_sha1_hex(line + 8, sha1))
                                        die("invalid shallow line: %s", line);
-                               /* no need making it shallow if we have it already */
-                               if (lookup_object(sha1))
-                                       continue;
                                register_shallow(sha1);
                                continue;
                        }