Code

bisect: use verbatim commit subject in the bisect log
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 12 Feb 2008 19:50:57 +0000 (19:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Feb 2008 20:03:49 +0000 (12:03 -0800)
Due to a typo, the commit subject was shell expanded in the bisect log.
That is, if you had some shell pattern in the commit subject, bisect
would happily put all matching file names into the log.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Tested-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh

index 393fa355849f88d6c5227f90cbf6cbb45b39631e..6594a62919adcf2d1c524cc24435b6fe444f9d52 100755 (executable)
@@ -135,7 +135,7 @@ bisect_write() {
                *)              die "Bad bisect_write argument: $state" ;;
        esac
        git update-ref "refs/bisect/$tag" "$rev"
-       echo "# $state: "$(git show-branch $rev) >>"$GIT_DIR/BISECT_LOG"
+       echo "# $state: $(git show-branch $rev)" >>"$GIT_DIR/BISECT_LOG"
        test -z "$nolog" && echo "git-bisect $state $rev" >>"$GIT_DIR/BISECT_LOG"
 }