commit 5<" tmp
+'
+
+test_expect_success 'find commit msg' 'grep "
" tmp'
+test_expect_success 'find diffstat' 'grep "
" tmp'
-run_test 'find commit subject' '
- grep -e "commit 5
" trash/tmp
+test_expect_success 'find diff summary' '
+ grep "1 files changed, 1 insertions, 0 deletions" tmp
'
-run_test 'find commit msg' 'grep -e "" trash/tmp'
-run_test 'find diffstat' 'grep -e "" trash/tmp'
+test_expect_success 'get root commit' '
+ root=$(cd repos/foo && git rev-list --reverse HEAD | head -1) &&
+ cgit_url "foo/commit&id=$root" >tmp &&
+ grep "