Fix for missing LockOSThread call
This commit is contained in:
parent
f912c28ac0
commit
a23d33dee4
|
@ -166,6 +166,9 @@ func (v *Repository) Config() (*Config, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *Repository) SetConfig(c *Config) error {
|
func (v *Repository) SetConfig(c *Config) error {
|
||||||
|
runtime.LockOSThread()
|
||||||
|
defer runtime.UnlockOSThread()
|
||||||
|
|
||||||
ret := C.git_repository_set_config(v.ptr, c.ptr)
|
ret := C.git_repository_set_config(v.ptr, c.ptr)
|
||||||
runtime.KeepAlive(v)
|
runtime.KeepAlive(v)
|
||||||
if ret < 0 {
|
if ret < 0 {
|
||||||
|
|
Loading…
Reference in New Issue