summaryrefslogtreecommitdiff
path: root/tests/diff/stats.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-10-04 21:41:28 +0100
committerGitHub <noreply@github.com>2020-10-04 21:41:28 +0100
commit9293e165a0214a277af306fcca640c2d637f2792 (patch)
treee764e2d35b1a3473f729696c914e57793fc97237 /tests/diff/stats.c
parente8ab3db99e13bcb330e91e0ca0265b60483a5e47 (diff)
parente72ade87fdb3acf3cbb6bf6d52cd774d924e0e2c (diff)
downloadlibgit2-9293e165a0214a277af306fcca640c2d637f2792.tar.gz
Merge pull request #5494 from kevinjswinton/master
Fix binary diff showing /dev/null
Diffstat (limited to 'tests/diff/stats.c')
-rw-r--r--tests/diff/stats.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/diff/stats.c b/tests/diff/stats.c
index 520a859fc..54572672c 100644
--- a/tests/diff/stats.c
+++ b/tests/diff/stats.c
@@ -298,9 +298,8 @@ void test_diff_stats__binary(void)
{
git_buf buf = GIT_BUF_INIT;
const char *stat =
- " binary.bin | Bin 3 -> 0 bytes\n"
+ " binary.bin | Bin 3 -> 5 bytes\n"
" 1 file changed, 0 insertions(+), 0 deletions(-)\n";
- /* TODO: Actually 0 bytes here should be 5!. Seems like we don't load the new content for binary files? */
diff_stats_from_commit_oid(
&_stats, "8d7523f6fcb2404257889abe0d96f093d9f524f9", false);