From 410a8e6fede33f0330d9cda36cc5f01546133eae Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 22 Jan 2014 18:31:25 -0500 Subject: Sometimes a zero byte file is just a zero byte file Don't go to the ODB to resolve zero byte files in the workdir --- src/diff_tform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/diff_tform.c b/src/diff_tform.c index 263a64d12..fc1b1d586 100644 --- a/src/diff_tform.c +++ b/src/diff_tform.c @@ -472,7 +472,7 @@ static int similarity_init( info->blob = NULL; git_buf_init(&info->data, 0); - if (info->file->size > 0) + if (info->file->size > 0 || info->src == GIT_ITERATOR_TYPE_WORKDIR) return 0; return git_diff_file__resolve_zero_size( -- cgit v1.2.1