diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-01-22 18:31:25 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2014-01-22 18:31:25 -0500 |
commit | 410a8e6fede33f0330d9cda36cc5f01546133eae (patch) | |
tree | a55b667c49a57252ba2cfa7c70ca42ce4d056e3f /src | |
parent | 2b678ce5b4ebbc1d045f2a07651720d8c1e6458c (diff) | |
download | libgit2-410a8e6fede33f0330d9cda36cc5f01546133eae.tar.gz |
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
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( |