KeepAlive all the things #393
|
@ -35,8 +35,10 @@ func (c Commit) ExtractSignature() (string, string, error) {
|
||||||
defer C.git_buf_free(&c_signature)
|
defer C.git_buf_free(&c_signature)
|
||||||
|
|
||||||
oid := c.Id()
|
oid := c.Id()
|
||||||
|
|
||||||
repo := C.git_commit_owner(c.cast_ptr)
|
repo := C.git_commit_owner(c.cast_ptr)
|
||||||
|
|
||||||
|
runtime.LockOSThread()
|
||||||
|
defer runtime.UnlockOSThread()
|
||||||
ret := C.git_commit_extract_signature(&c_signature, &c_signed, repo, oid.toC(), nil)
|
ret := C.git_commit_extract_signature(&c_signature, &c_signed, repo, oid.toC(), nil)
|
||||||
|
|
||||||
if ret < 0 {
|
if ret < 0 {
|
||||||
|
|
Loading…
Reference in New Issue