Code

Bisect visualize: use "for-each-ref" to list all good refs.
[git.git] / git-bisect.sh
index dae8a8e9806040bd396692f118f3887f5f043ed1..2b20037a11687d4d867038d5544c81d709fce8ac 100755 (executable)
@@ -324,8 +324,8 @@ bisect_next() {
 
 bisect_visualize() {
        bisect_next_check fail
-       not=`cd "$GIT_DIR/refs" && echo bisect/good-*`
-       eval gitk bisect/bad --not $not -- $(cat "$GIT_DIR/BISECT_NAMES")
+       not=$(git for-each-ref --format='%(refname)' "refs/bisect/good-*")
+       eval gitk refs/bisect/bad --not $not -- $(cat "$GIT_DIR/BISECT_NAMES")
 }
 
 bisect_reset() {