(remote, url string)
| 831 | } |
| 832 | |
| 833 | func (c *RemoteCollection) SetUrl(remote, url string) error { |
| 834 | curl := C.CString(url) |
| 835 | defer C.free(unsafe.Pointer(curl)) |
| 836 | cremote := C.CString(remote) |
| 837 | defer C.free(unsafe.Pointer(cremote)) |
| 838 | |
| 839 | runtime.LockOSThread() |
| 840 | defer runtime.UnlockOSThread() |
| 841 | |
| 842 | ret := C.git_remote_set_url(c.repo.ptr, cremote, curl) |
| 843 | runtime.KeepAlive(c.repo) |
| 844 | if ret < 0 { |
| 845 | return MakeGitError(ret) |
| 846 | } |
| 847 | return nil |
| 848 | } |
| 849 | |
| 850 | func (c *RemoteCollection) SetPushUrl(remote, url string) error { |
| 851 | curl := C.CString(url) |
nothing calls this directly
no test coverage detected