Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Correct the test comments that went stale
Diffstat (limited to '')
-rwxr-xr-xtests/t0106-commit.sh4
1 file changed, 2 insertions, 2 deletions
diff --git a/tests/t0106-commit.sh b/tests/t0106-commit.sh
index 5564038..6c8361a 100755
--- a/tests/t0106-commit.sh
+++ b/tests/t0106-commit.sh
@@ -1,8 +1,7 @@
#!/bin/sh
# The commit page. Most checks read the markup for the tree link, the parent
-# link, the subject and the diffstat. The last few use a root commit, which
-# has no parent and diffs against the empty tree.
+# link, the subject and the diffstat.
test_description='Check content on commit page'
. ./setup.sh
@@ -38,6 +37,7 @@ test_expect_success 'a commit that changes no files draws no diffstat table' '
! grep "<table class=.diffstat.>" tmp
'
+# A root commit has no parent, so it diffs against the empty tree.
test_expect_success 'get root commit' '
root=$(cd repos/foo && git rev-list --reverse HEAD | head -1) &&
cgit_url "foo/commit&id=$root" >tmp &&