3 test_description='Check content on patch page'
6 test_expect_success 'generate foo/patch' '
7 cgit_query "url=foo/patch" >tmp
10 test_expect_success 'find `From:` line' '
14 test_expect_success 'find `Date:` line' '
18 test_expect_success 'find `Subject:` line' '
19 grep "^Subject: commit 5" tmp
22 test_expect_success 'find `cgit` signature' '
23 tail -2 tmp | head -1 | grep "^cgit"
26 test_expect_success 'find initial commit' '
27 root=$(git --git-dir="$PWD/repos/foo/.git" rev-list --max-parents=0 HEAD)
30 test_expect_success 'generate patch for initial commit' '
31 cgit_query "url=foo/patch&id=$root" >tmp
34 test_expect_success 'find `cgit` signature' '
35 tail -2 tmp | head -1 | grep "^cgit"