diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2008-02-10 13:59:50 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-11 12:04:17 -0800 |
commit | ce32660edc2b83c6fdf550f6869e0b01e255dadb (patch) | |
tree | 05dd6d0b6d5f8c18e3aece6b239f47b18a8115e6 /t | |
parent | git-pull documentation: fix markup (diff) | |
download | tgif-ce32660edc2b83c6fdf550f6869e0b01e255dadb.tar.xz |
bisect: allow starting with a detached HEAD
Instead of insisting on a symbolic ref, bisect now accepts detached
HEADs, too.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t6030-bisect-porcelain.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh index 2ba4b00e52..ec71123f4b 100755 --- a/t/t6030-bisect-porcelain.sh +++ b/t/t6030-bisect-porcelain.sh @@ -254,6 +254,18 @@ test_expect_success 'bisect run & skip: find first bad' ' grep "$HASH6 is first bad commit" my_bisect_log.txt ' +test_expect_success 'bisect starting with a detached HEAD' ' + + git bisect reset && + git checkout master^ && + HEAD=$(git rev-parse --verify HEAD) && + git bisect start && + test $HEAD = $(cat .git/head-name) && + git bisect reset && + test $HEAD = $(git rev-parse --verify HEAD) + +' + # # test_done |