upload-pack: remove a piece of dead code
commit4b796951ffca7c0aa9e05d62d6d16a3c689b7f25
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 11 Jul 2013 11:25:52 +0000 (11 13:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Jul 2013 17:49:42 +0000 (15 10:49 -0700)
tree3ed9fdedd170b50f828953a42df5ac51929fdd8e
parent2532d891a4aab003a5ce19f04509fd8549754485
upload-pack: remove a piece of dead code

Commit 682c7d2 (upload-pack: fix off-by-one depth calculation in shallow
clone) introduced a new check in get_shallow_commits to decide when to
stop traversing the history and mark the current commit as a shallow
root.

With this new check in place, the old check can no longer be true, since
the first check always fires first. This commit removes that check,
making the code a bit more simple again.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Acked-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
shallow.c