aboutsummaryrefslogtreecommitdiff
path: root/t/t5100-mailinfo.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2007-02-26 11:10:59 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-27 01:02:32 -0800
commit34fc5cefa7068492d5103b40dca1b55f69986eb8 (patch)
tree639ff5e39147164456cf232e0d9e92380c35eb2f /t/t5100-mailinfo.sh
parent0d9b9ab1284ce125fd49cf7dbf4d28e0540cf035 (diff)
downloadgit-34fc5cefa7068492d5103b40dca1b55f69986eb8.tar.gz
git-34fc5cefa7068492d5103b40dca1b55f69986eb8.tar.xz
mailinfo: do not get confused with logical lines that are too long.
It basically considers all the continuation lines to be lines of their own, and if the total line is bigger than what we can fit in it, we just truncate the result rather than stop in the middle and then get confused when we try to parse the "next" line (which is just the remainder of the first line). [jc: added test, and tightened boundary a bit per list discussion.] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t5100-mailinfo.sh')
-rwxr-xr-xt/t5100-mailinfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh
index 17c1b80b5..4d2b781a1 100755
--- a/t/t5100-mailinfo.sh
+++ b/t/t5100-mailinfo.sh
@@ -11,7 +11,7 @@ test_expect_success 'split sample box' \
'git-mailsplit -o. ../t5100/sample.mbox >last &&
last=`cat last` &&
echo total is $last &&
- test `cat last` = 5'
+ test `cat last` = 6'
for mail in `echo 00*`
do