author | Lars Hjemli <hjemli@gmail.com> | 2008-05-18 19:21:32 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-05-18 19:33:30 (UTC) |
commit | 8907f2a03195abec409540ab11293fe748468413 (patch) (side-by-side diff) | |
tree | 98b8d269408f6ffcda3a2ebfa6c709565e0f1c2a /tests | |
parent | 502d57596e645ec91bb9b8ca62833cdb0de4a3b1 (diff) | |
download | cgit-8907f2a03195abec409540ab11293fe748468413.zip cgit-8907f2a03195abec409540ab11293fe748468413.tar.gz cgit-8907f2a03195abec409540ab11293fe748468413.tar.bz2 |
Include commit-id in link from diff-stat
This fixes a regression created by fe1230dece81450004d02fa8a470f8dab8f7fdd9,
and modifies a test to avoid future regressions.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rwxr-xr-x | tests/t0105-commit.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0105-commit.sh b/tests/t0105-commit.sh index 4e1236b..a864612 100755 --- a/tests/t0105-commit.sh +++ b/tests/t0105-commit.sh @@ -23,13 +23,13 @@ run_test 'get root commit' ' root=$(cd trash/repos/foo && git rev-list --reverse HEAD | head -1) && cgit_url "foo/commit&id=$root" >trash/tmp && grep "</html>" trash/tmp ' run_test 'root commit contains diffstat' ' - grep "<a href=./foo/diff/file-1.>file-1</a>" trash/tmp + grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40\}.>file-1</a>" trash/tmp ' run_test 'root commit contains diff' ' grep ">diff --git a/file-1 b/file-1<" trash/tmp && grep -e "<div class=.add.>+1</div>" trash/tmp ' |