KeepAlive all the things #393

Merged
carlosmn merged 5 commits from cmn/keepalive-all-the-things into master 2017-07-08 09:51:22 -05:00
1 changed files with 6 additions and 4 deletions
Showing only changes of commit 5d466ffbc0 - Show all commits

View File

@ -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 {