Update the method name

This commit is contained in:
lhchavez 2020-02-23 14:38:10 +00:00
parent c20008416a
commit 00374b39aa
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ func (v *Index) AddFromBuffer(entry *IndexEntry, buffer []byte) error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
if err := C.git_index_add_frombuffer(v.ptr, &centry, cbuffer, C.size_t(len(buffer))); err < 0 {
if err := C.git_index_add_from_buffer(v.ptr, &centry, cbuffer, C.size_t(len(buffer))); err < 0 {
return MakeGitError(err)
}