summaryrefslogtreecommitdiff
path: root/t/t6030-bisect-porcelain.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-06-09 01:06:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-06-09 01:06:32 (GMT)
commit63e50b8678cbf9a9fd8c875d1f66f2f1a3d29088 (patch)
tree6dced60bb483e11f7b27992762d5ce9be94792de /t/t6030-bisect-porcelain.sh
parent2bdf00e66ae501c417fa33f887f2c60ef8719b2a (diff)
parent4d9005ff5d1de0b4e82402320aab4ff27aa23b43 (diff)
downloadgit-63e50b8678cbf9a9fd8c875d1f66f2f1a3d29088.zip
git-63e50b8678cbf9a9fd8c875d1f66f2f1a3d29088.tar.gz
git-63e50b8678cbf9a9fd8c875d1f66f2f1a3d29088.tar.bz2
Merge branch 'cb/bisect-helper-parser-fix'
The code to parse "git bisect start" command line was lax in validating the arguments. * cb/bisect-helper-parser-fix: bisect--helper: avoid segfault with bad syntax in `start --term-*`
Diffstat (limited to 't/t6030-bisect-porcelain.sh')
-rwxr-xr-xt/t6030-bisect-porcelain.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh
index ac31fae..36d9b2b 100755
--- a/t/t6030-bisect-porcelain.sh
+++ b/t/t6030-bisect-porcelain.sh
@@ -866,7 +866,9 @@ test_expect_success 'bisect cannot mix terms' '
test_expect_success 'bisect terms rejects invalid terms' '
git bisect reset &&
+ test_must_fail git bisect start --term-good &&
test_must_fail git bisect start --term-good invalid..term &&
+ test_must_fail git bisect start --term-bad &&
test_must_fail git bisect terms --term-bad invalid..term &&
test_must_fail git bisect terms --term-good bad &&
test_must_fail git bisect terms --term-good old &&