summaryrefslogtreecommitdiff
path: root/t/t3406-rebase-message.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-06-03 15:52:18 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-06-03 15:52:18 -0700
commit06de561830250f92e056b0a57bc52b27b13ba2ac (patch)
tree30f565b258771ba9cffeeaa04a0c02c755cf28e2 /t/t3406-rebase-message.sh
parentStart preparing for 1.7.10.4 (diff)
parentrebase: report invalid commit correctly (diff)
downloadtgif-06de561830250f92e056b0a57bc52b27b13ba2ac.tar.xz
Merge branch 'ef/maint-rebase-error-message' into maint
When "git rebase" was given a bad commit to replay the history on, its error message did not correctly give the command line argument it had trouble parsing. By Erik Faye-Lund * ef/maint-rebase-error-message: rebase: report invalid commit correctly
Diffstat (limited to 't/t3406-rebase-message.sh')
-rwxr-xr-xt/t3406-rebase-message.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t3406-rebase-message.sh b/t/t3406-rebase-message.sh
index fe5f936988..6898377910 100755
--- a/t/t3406-rebase-message.sh
+++ b/t/t3406-rebase-message.sh
@@ -62,4 +62,9 @@ test_expect_success 'rebase -n overrides config rebase.stat config' '
! grep "^ fileX | *1 +$" diffstat.txt
'
+test_expect_success 'rebase --onto outputs the invalid ref' '
+ test_must_fail git rebase --onto invalid-ref HEAD HEAD 2>err &&
+ grep "invalid-ref" err
+'
+
test_done