Code

Merge branch 'maint'
[git.git] / t / t8003-blame.sh
index ad834f200ac0d6ecf532374311d896557a9b941d..3bbddd03cbfcf5cbdff6ed2987d68da9402ed993 100755 (executable)
@@ -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