summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xtests/t0105-commit.sh2
-rw-r--r--ui-diff.c1
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
@@ -27,5 +27,5 @@ run_test 'get root commit' '
27 27
28run_test 'root commit contains diffstat' ' 28run_test 'root commit contains diffstat' '
29 grep "<a href=./foo/diff/file-1.>file-1</a>" trash/tmp 29 grep "<a href=./foo/diff/file-1.id=[0-9a-f]\{40\}.>file-1</a>" trash/tmp
30' 30'
31 31
diff --git a/ui-diff.c b/ui-diff.c
index 12e78b1..1c182aa 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -146,4 +146,5 @@ void cgit_print_diffstat(const unsigned char *old_sha1,
146 html("<table summary='diffstat' class='diffstat'>"); 146 html("<table summary='diffstat' class='diffstat'>");
147 max_changes = 0; 147 max_changes = 0;
148 curr_rev = xstrdup(sha1_to_hex(new_sha1));
148 cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL); 149 cgit_diff_tree(old_sha1, new_sha1, inspect_filepair, NULL);
149 for(i = 0; i<files; i++) 150 for(i = 0; i<files; i++)