libgit2/libgit2 — pull request #959 by jamill (2012-09-27 17:41:10+00:00)
Title: Fix error hashing empty file.

Pull Request around an issue when hashing an empty (0 byte) files in the working directory of a repository. This issue is hit when getting the status of a repository whose working directory includes an empty file. This includes a test covering this issue.

The hashing logic did not discern between not reading from a file because it was empty and the read function returning an error.

Appreciate any thoughts / comments on this

Thanks!