Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-14 09:04:56 +0300
committerJunio C Hamano <junkio@cox.net>2006-11-25 02:42:49 +0300
commitfcd1e3190612fc59c2d820537280b5164d290d9d (patch)
tree1115591f3a2f7d08fef5027156a0e17da9bac2a1 /fetch-pack.c
parentcf01bd52efeb21084652b2b06b778ed458004e8f (diff)
Why does it mean we do not have to register shallow if we have one?
Diffstat (limited to 'fetch-pack.c')
-rw-r--r--fetch-pack.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fetch-pack.c b/fetch-pack.c
index 6fd457035e..d00573d022 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;
}