We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 264d5a7 + 9180fea commit 3ba4663Copy full SHA for 3ba4663
git-rebase.sh
@@ -424,7 +424,7 @@ case "$onto_name" in
424
;;
425
*)
426
onto=$(git rev-parse --verify "${onto_name}^0") ||
427
- die "Does not point to a valid commit: $1"
+ die "Does not point to a valid commit: $onto_name"
428
429
esac
430
t/t3406-rebase-message.sh
@@ -62,4 +62,9 @@ test_expect_success 'rebase -n overrides config rebase.stat config' '
62
! grep "^ fileX | *1 +$" diffstat.txt
63
'
64
65
+test_expect_success 'rebase --onto outputs the invalid ref' '
66
+ test_must_fail git rebase --onto invalid-ref HEAD HEAD 2>err &&
67
+ grep "invalid-ref" err
68
+'
69
+
70
test_done
0 commit comments