Fix for missing LockOSThread call

This commit is contained in:
Byoungchan Lee 2021-02-01 22:24:54 +09:00
parent f912c28ac0
commit a23d33dee4
1 changed files with 3 additions and 0 deletions

View File

@ -166,6 +166,9 @@ func (v *Repository) Config() (*Config, error) {
}
func (v *Repository) SetConfig(c *Config) error {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
ret := C.git_repository_set_config(v.ptr, c.ptr)
runtime.KeepAlive(v)
if ret < 0 {