aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-02-08 21:53:54 -0800
committerJunio C Hamano <gitster@pobox.com>2010-02-08 21:53:54 -0800
commite33cc592deae8132936eea119554799e1039bc0f (patch)
treede03ec4e298bf23e73f7789a4f00cad2385ff756 /t
parenta598331f952b5bd89f72fcf20a44ab3aa2918b3f (diff)
parent92f9e273e86d505e4c2a28bc053eb514ca2cc552 (diff)
downloadgit-e33cc592deae8132936eea119554799e1039bc0f.tar.gz
git-e33cc592deae8132936eea119554799e1039bc0f.tar.xz
Merge branch 'maint-1.6.5' into maint
* maint-1.6.5: blame: prevent a segv when -L given start > EOF
Diffstat (limited to 't')
-rwxr-xr-xt/t8003-blame.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t8003-blame.sh b/t/t8003-blame.sh
index ad834f200..4a8db74f7 100755
--- a/t/t8003-blame.sh
+++ b/t/t8003-blame.sh
@@ -157,4 +157,12 @@ 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>&1 | grep "has only 2 lines"
+'
+
+test_expect_success 'blame -L with invalid end' '
+ git blame -L1,5 tres 2>&1 | grep "has only 2 lines"
+'
+
test_done