Merge branch 'jk/close-duped-fd-before-unlock-for-bundle'
[gitweb.git] / t / t3406-rebase-message.sh
index 0392e36d2364c8149f2a628a0901f113b7a5875f..2c79eed4febda6977dde4d530d73a184cfa92d80 100755 (executable)
@@ -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