aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-03 15:52:18 -0700
committerJunio C Hamano <gitster@pobox.com>2012-06-03 15:52:18 -0700
commit06de561830250f92e056b0a57bc52b27b13ba2ac (patch)
tree30f565b258771ba9cffeeaa04a0c02c755cf28e2 /t
parent6a6d72b199fda7189b772640ca35ceb13708332d (diff)
parent9180feafbc7c637a4fae72d1ca1d3b2245b4302c (diff)
downloadgit-06de561830250f92e056b0a57bc52b27b13ba2ac.tar.gz
git-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')
-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 fe5f93698..689837791 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