update libgit2 dependency to 0.19.0

 - update pygit2 to 0.19.1
 - replace ref.oid with ref.target
 - replace entry.attributes with entry.filemode
pep8