From: Junio C Hamano Date: Tue, 14 Nov 2006 06:04:56 +0000 (-0800) Subject: Why does it mean we do not have to register shallow if we have one? X-Git-Tag: v1.5.0-rc1~172^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fcd1e3190612fc59c2d820537280b5164d290d9d;p=git.git Why does it mean we do not have to register shallow if we have one? --- diff --git a/fetch-pack.c b/fetch-pack.c index 6fd457035..d00573d02 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -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; }