Commit b9c8e7f2fb6e ("prefix_ref_iterator: don't trim too much") breaks git bisect visualize, this reproduces the bug: $ git bisect start $ git bisect bad $ git bisect good HEAD^^ $ git bisect visualize fatal: BUG: attempt to trim too many characters $ Reverting b9c8e7f2fb6e makes git bisect visualize work again. Tested on Debian GNU/Linux 8.8 (jessie). Øyvind N 60.37604° E 5.33339° OpenPGP fingerprint: A006 05D6 E676 B319 55E2 E77E FB0C BEE8 94A5 06E5 dcacbb24-5094-11e7-b7e4-db5caa6d21d3