summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-10-04 19:49:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-04 19:49:08 (GMT)
commit03a01824a4ee07cd06b152bbff45066d6cf5542b (patch)
tree4a038a3a4036c0faa7f38a86d160540eff9adcb6 /t
parent230ff3e9970755fe4ba2e69165eab1f61752f1d1 (diff)
parent73c6de06aff8d14b5e9f55f393d25f1213f3d43d (diff)
downloadgit-03a01824a4ee07cd06b152bbff45066d6cf5542b.zip
git-03a01824a4ee07cd06b152bbff45066d6cf5542b.tar.gz
git-03a01824a4ee07cd06b152bbff45066d6cf5542b.tar.bz2
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-xt/t6030-bisect-porcelain.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh
index b886529..aa22638 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 &&