pygit2
pygit2 copied to clipboard
Repository.amend_commit with encoding=None
Currently, it will raise TypeError: expected new array length or list/tuple/str, not _cffi_backend._CDataBase at encoding_cstr = ffi.new('char[]', to_bytes(encoding)) while libgit2 supports setting NULL and not setting encoding in the commit message