carlosmn/pygit2 — comment on commit f32727838cc63539a7005d99fd8bfba042259cec
File:  line 0
By jdavid:

In an error condition raised by libgit2, the proposed implementation of ``py_str_to_git_oid_expand`` returns the libgit2 error number. However the callers test only against 0. Either the function or the callers must be fixed.

Since the patch needs to be modified, please fix coding style to match PEP 7, specifically regarding indentation (4 spaces).