@matheusbsbs / matheus-bagliano / commits / fcd1e31906
Fork 0

Why does it mean we do not have to register shallow if we have one?

Junio C Hamano committed Nov 13, 2006 at 22:04 UTC fcd1e3190612fc59c2d820537280b5164d290d9d
1 file changed -3
fetch-pack.c
-3
@@ -198,9 +198,6 @@ static int find_common(int fd[2], unsigned char *result_sha1,
198 if (!strncmp("shallow ", line, 8)) {
199 if (get_sha1_hex(line + 8, sha1))
200 die("invalid shallow line: %s", line);
201 - /* no need making it shallow if we have it already */
202 - if (lookup_object(sha1))
203 - continue;
201 register_shallow(sha1);
202 continue;
203 }