diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-10-04 22:49:08 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-04 22:49:08 +0300 |
commit | 03a01824a4ee07cd06b152bbff45066d6cf5542b (patch) | |
tree | 4a038a3a4036c0faa7f38a86d160540eff9adcb6 /t | |
parent | 230ff3e9970755fe4ba2e69165eab1f61752f1d1 (diff) | |
parent | 73c6de06aff8d14b5e9f55f393d25f1213f3d43d (diff) |
Merge branch 'cc/bisect-start-fix'
"git bisect start X Y", when X and Y are not valid committish
object names, should take X and Y as pathspec, but didn't.
* cc/bisect-start-fix:
bisect: don't use invalid oid as rev when starting
Diffstat (limited to 't')
-rwxr-xr-x | t/t6030-bisect-porcelain.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh index b886529e59..aa226381be 100755 --- a/t/t6030-bisect-porcelain.sh +++ b/t/t6030-bisect-porcelain.sh @@ -82,6 +82,13 @@ test_expect_success 'bisect fails if given any junk instead of revs' ' git bisect bad $HASH4 ' +test_expect_success 'bisect start without -- takes unknown arg as pathspec' ' + git bisect reset && + git bisect start foo bar && + grep foo ".git/BISECT_NAMES" && + grep bar ".git/BISECT_NAMES" +' + test_expect_success 'bisect reset: back in the master branch' ' git bisect reset && echo "* master" > branch.expect && |