Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t4211: demonstrate crash when first -L encountered is empty range
[gitweb.git]
/
t
/
t4211-line-log.sh
diff --git
a/t/t4211-line-log.sh
b/t/t4211-line-log.sh
index 9042178124d0bdc1246e3d9862fc72cc5d406a2b..d98efb3c4e96570566a08e7b373d892d16ffa5ad 100755
(executable)
--- a/
t/t4211-line-log.sh
+++ b/
t/t4211-line-log.sh
@@
-72,4
+72,9
@@
test_expect_failure '-L {empty-range} (any -L)' '
git log -L1,1:b.c -L$n:b.c
'
+test_expect_failure '-L {empty-range} (first -L)' '
+ n=$(expr $(wc -l <b.c) + 1) &&
+ git log -L$n:b.c
+'
+
test_done