()
| 340 | } |
| 341 | |
| 342 | func (sub *Submodule) Sync() error { |
| 343 | runtime.LockOSThread() |
| 344 | defer runtime.UnlockOSThread() |
| 345 | |
| 346 | ret := C.git_submodule_sync(sub.ptr) |
| 347 | runtime.KeepAlive(sub) |
| 348 | if ret < 0 { |
| 349 | return MakeGitError(ret) |
| 350 | } |
| 351 | return nil |
| 352 | } |
| 353 | |
| 354 | func (sub *Submodule) Open() (*Repository, error) { |
| 355 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected