libgit2/libgit2 — pull request #1837 by nulltoken (2013-09-07 20:53:13+00:00)
Title: odb: Error when streaming in more bytes than declared

- Make `git_odb_stream_write()` fail when receiving more bytes than expected
- Make `git_odb_stream_finalize_write()` fail when the number of received bytes differs from what was expected