Пример #1
0
func (remote *Remote) Save() error {
	ecode := C.git_remote_save(remote.git_remote)
	if ecode != git_SUCCESS {
		return gitError()
	}
	return nil
}
Пример #2
0
func (o *Remote) Save() error {

	runtime.LockOSThread()
	defer runtime.UnlockOSThread()

	ret := C.git_remote_save(o.ptr)
	if ret < 0 {
		return MakeGitError(ret)
	}
	return nil
}