Code

send-pack: do not give up when remote has insanely large number of refs.
authorJunio C Hamano <junkio@cox.net>
Wed, 22 Feb 2006 02:59:37 +0000 (18:59 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 22 Feb 2006 09:47:32 +0000 (01:47 -0800)
commit797656e58ddbd82ac461a5142ed726db3a4d0ac0
treecb900f7e451fc454f03e7c75c88ef3baf33a19cf
parent50319850343dfe534939ee6b38507d5a8fc44b50
send-pack: do not give up when remote has insanely large number of refs.

Stephen C. Tweedie noticed that we give up running rev-list when
we see too many refs on the remote side.  Limit the number of
negative references we give to rev-list and continue.

Not sending any negative references to rev-list is very bad --
we may be pushing a ref that is new to the other end.

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