X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft8003-blame.sh;h=3bbddd03cbfcf5cbdff6ed2987d68da9402ed993;hb=0d8fc3efc65df74a2b39b3f9798861a1b2055b62;hp=ad834f200ac0d6ecf532374311d896557a9b941d;hpb=ce67b3eed896e0884ca4cdc2edce9a032cefe45a;p=git.git diff --git a/t/t8003-blame.sh b/t/t8003-blame.sh index ad834f200..3bbddd03c 100755 --- a/t/t8003-blame.sh +++ b/t/t8003-blame.sh @@ -157,4 +157,14 @@ EOF git --no-pager blame $COMMIT -- uno >/dev/null ' +test_expect_success 'blame -L with invalid start' ' + test_must_fail git blame -L5 tres 2>errors && + grep "has only 2 lines" errors +' + +test_expect_success 'blame -L with invalid end' ' + test_must_fail git blame -L1,5 tres 2>errors && + grep "has only 2 lines" errors +' + test_done