Пример #1
0
func (repo *Repository) ReloadAllSubmodules() error {
	ret := C.git_submodule_reload_all(repo.ptr)
	if ret < 0 {
		return LastError()
	}
	return nil
}
Пример #2
0
func (repo *Repository) ReloadAllSubmodules(force bool) error {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()

	ret := C.git_submodule_reload_all(repo.ptr, cbool(force))
	if ret < 0 {
		return MakeGitError(ret)
	}
	return nil
}