updated method name

Method named changed in 
https://github.com/libgit2/libgit2/commit/bc91347b5894c98964a12c6637d5ca91d9723b42