-rwxr-xr-x | tests/t0105-commit.sh | 2 | ||||
-rw-r--r-- | ui-diff.c | 1 |
2 files changed, 2 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 @@ -28,3 +28,3 @@ run_test 'get root commit' ' 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 ' @@ -147,2 +147,3 @@ void cgit_print_diffstat(const unsigned char *old_sha1, max_changes = 0; + curr_rev = xstrdup(sha1_to_hex(new_sha1)); cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL); |