filter_refs(): do not check the same sought_pos twice
authorMichael Haggerty <redacted>
Sun, 9 Sep 2012 06:19:41 +0000 (08:19 +0200)
committerJunio C Hamano <redacted>
Wed, 12 Sep 2012 18:46:31 +0000 (11:46 -0700)
commit382a96711470489ea6e4e277accd3afc46526bfc
tree061a8f50b081cc31daf5634d879b87242e15d369
parent8bee93dd24731a1d2ef7c82d484a893cf68b6572
filter_refs(): do not check the same sought_pos twice

Once a match has been found at sought_pos, the entry is zeroed and no
future attempts will match that entry.  So increment sought_pos to
avoid checking against the zeroed-out entry during the next iteration.

Signed-off-by: Michael Haggerty <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/fetch-pack.c
git clone https://git.99rst.org/PROJECT