Skip to content

Commit 99780b0

Browse files
sunshinecogitster
authored andcommitted
t4211: demonstrate crash when first -L encountered is empty range
Signed-off-by: Eric Sunshine <[email protected]> Acked-by: Thomas Rast <[email protected]> Helped-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5896097 commit 99780b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/t4211-line-log.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,9 @@ test_expect_failure '-L {empty-range} (any -L)' '
7272
git log -L1,1:b.c -L$n:b.c
7373
'
7474

75+
test_expect_failure '-L {empty-range} (first -L)' '
76+
n=$(expr $(wc -l <b.c) + 1) &&
77+
git log -L$n:b.c
78+
'
79+
7580
test_done

0 commit comments

Comments
 (0)