diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-06-03 15:52:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-03 15:52:18 -0700 |
commit | 06de561830250f92e056b0a57bc52b27b13ba2ac (patch) | |
tree | 30f565b258771ba9cffeeaa04a0c02c755cf28e2 /t | |
parent | Start preparing for 1.7.10.4 (diff) | |
parent | rebase: report invalid commit correctly (diff) | |
download | tgif-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-x | t/t3406-rebase-message.sh | 5 |
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 |