summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-11-18 18:23:59 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-11-18 18:23:59 +0900
commit137c1f2f51bceb8d1f1f457c52129be78c0ac86d (patch)
treef7b2495f49cf286356b0afce753840bf3e6e46b3 /t
parentMerge branch 'sg/ref-filter-wo-repository' (diff)
parentrebase: validate -C<n> and --whitespace=<mode> parameters early (diff)
downloadtgif-137c1f2f51bceb8d1f1f457c52129be78c0ac86d.tar.xz
Merge branch 'js/rebase-am-options'
The way "git rebase" parses and forwards the command line options meant for underlying "git am" has been revamped, which fixed for options with parameters that were not passed correctly. * js/rebase-am-options: rebase: validate -C<n> and --whitespace=<mode> parameters early rebase: really just passthru the `git am` options
Diffstat (limited to 't')
-rwxr-xr-xt/t3406-rebase-message.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t3406-rebase-message.sh b/t/t3406-rebase-message.sh
index 0392e36d23..2c79eed4fe 100755
--- a/t/t3406-rebase-message.sh
+++ b/t/t3406-rebase-message.sh
@@ -84,4 +84,11 @@ test_expect_success 'rebase --onto outputs the invalid ref' '
test_i18ngrep "invalid-ref" err
'
+test_expect_success 'error out early upon -C<n> or --whitespace=<bad>' '
+ test_must_fail git rebase -Cnot-a-number HEAD 2>err &&
+ test_i18ngrep "numerical value" err &&
+ test_must_fail git rebase --whitespace=bad HEAD 2>err &&
+ test_i18ngrep "Invalid whitespace option" err
+'
+
test_done