diff options
author | Vicent Marti <vicent@github.com> | 2014-01-22 15:41:25 -0800 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-01-22 15:41:25 -0800 |
commit | ac8949edb2b1fc286656baac5be367c8c31330ab (patch) | |
tree | 1ddf35a053a75bc5542ee0f812c2f0b80ae60c21 /src | |
parent | ab4bcc038aebb68975935809cd328fc9ccb70ba7 (diff) | |
parent | 410a8e6fede33f0330d9cda36cc5f01546133eae (diff) | |
download | libgit2-ac8949edb2b1fc286656baac5be367c8c31330ab.tar.gz |
Merge pull request #2073 from ethomson/zerobytes
Sometimes a zero byte file is just a zero byte file
Diffstat (limited to 'src')
-rw-r--r-- | src/diff_tform.c | 2 |
1 files changed, 1 insertions, 1 deletions
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( |