Do not feed rev-list an invalid SHA1 expression.
commit4dab94d52e25b6a53a715613ec5b06b42b240106
authorJunio C Hamano <junkio@cox.net>
Thu, 20 Oct 2005 01:28:17 +0000 (19 18:28 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 20 Oct 2005 04:04:53 +0000 (19 21:04 -0700)
tree061550ba5e546c9c795b365e1364a159aa264f7c
parent0a8944dd48b97d258240af967dfdfcea4f203b85
Do not feed rev-list an invalid SHA1 expression.

The previous round to optimize fetch-pack has a small bug that
feeds SHA1^ ("parent commit") before making sure SHA1 is
actually a commit (or a tag that eventually dereferences to a
commit).  Also it did not help culling the known-to-be-common
parents if the common one was a merge.

Signed-off-by: Junio C Hamano <junkio@cox.net>
fetch-pack.c