Code

git-bisect: typofix
authorJunio C Hamano <junkio@cox.net>
Fri, 23 Mar 2007 20:15:21 +0000 (13:15 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 23 Mar 2007 20:15:21 +0000 (13:15 -0700)
The branch you are on while bisecting is always "bisect", and
checking for "refs/heads/bisect*" is wrong.  Only check if it is
exactly "refs/heads/bisect".

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-bisect.sh

index 3043f65514d8789b7b8f7f72df5968762facb410..8eaea7cd19598710769e78cb4eb1ecd34a707286 100755 (executable)
@@ -50,7 +50,7 @@ bisect_start() {
        head=$(GIT_DIR="$GIT_DIR" git-symbolic-ref HEAD) ||
        die "Bad HEAD - I need a symbolic ref"
        case "$head" in
-       refs/heads/bisect*)
+       refs/heads/bisect)
                if [ -s "$GIT_DIR/head-name" ]; then
                    branch=`cat "$GIT_DIR/head-name"`
                else