Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Check the tag message line by line
The check removed every newline before matching, so a body that kept
the blank line after the subject read the same, and the page would
have shown that line under white-space pre-wrap.
| -rwxr-xr-x | tests/t0113-tag.sh | 5 |
1 file changed, 3 insertions, 2 deletions
diff --git a/tests/t0113-tag.sh b/tests/t0113-tag.sh index 8aea27e..19b2283 100755 --- a/tests/t0113-tag.sh +++ b/tests/t0113-tag.sh @@ -34,8 +34,9 @@ test_expect_success 'the object row names the full commit id' ' ' test_expect_success 'the message follows with no blank line before the body' ' - tr -d "\n" <tmp >flat && - grep "<div class=.commit-subject.>Annotated tag</div><div class=.commit-msg.>Release notes overtwo lines.</div>" flat + cgit_ok_url "foo/tag/&h=v1.0" >tmp && + test_grep "<div class=.commit-subject.>Annotated tag</div><div class=.commit-msg.>Release notes over$" tmp && + test_grep "^two lines\.$" tmp ' test_expect_success 'a lightweight tag gets the shorter table' ' |
