rev-parse: don't trim bisect refnames
authorJeff King <redacted>
Wed, 6 Sep 2017 11:53:10 +0000 (07:53 -0400)
committerJunio C Hamano <redacted>
Wed, 6 Sep 2017 23:46:53 +0000 (08:46 +0900)
commit1d0538e4860f3827bb711a4a05dbc2f194f767be
treeda7dda784ddcd63e71801a1759ccab19f6470d6d
parent03df567fbf6afeca32f6a27d04656c1a3a162453
rev-parse: don't trim bisect refnames

Using for_each_ref_in() with a full refname has always been
a questionable practice, but it became an error with
b9c8e7f2fb (prefix_ref_iterator: don't trim too much,
2017-05-22), making "git rev-parse --bisect" pretty reliably
show a BUG.

Commit 03df567fbf (for_each_bisect_ref(): don't trim
refnames, 2017-06-18) fixed this case for revision.c, but
rev-parse handles this option on its own. We can use the
same solution here (and piggy-back on its test).

Signed-off-by: Jeff King <redacted>
Acked-by: Michael Haggerty <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/rev-parse.c
t/t6002-rev-list-bisect.sh
git clone https://git.99rst.org/PROJECT