diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-11-18 09:23:59 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-18 09:23:59 (GMT) |
commit | 137c1f2f51bceb8d1f1f457c52129be78c0ac86d (patch) | |
tree | f7b2495f49cf286356b0afce753840bf3e6e46b3 /t | |
parent | 7bdebaa646787b98679799ee27bfb42fb7daa8ca (diff) | |
parent | 04519d72011478e17b2dbb177820ef2c886b8e5f (diff) | |
download | git-137c1f2f51bceb8d1f1f457c52129be78c0ac86d.zip git-137c1f2f51bceb8d1f1f457c52129be78c0ac86d.tar.gz git-137c1f2f51bceb8d1f1f457c52129be78c0ac86d.tar.bz2 |
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-x | t/t3406-rebase-message.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t3406-rebase-message.sh b/t/t3406-rebase-message.sh index 0392e36..2c79eed 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 |