Remote Refinements #319
|
@ -467,10 +467,11 @@ func (c *RemoteCollection) Rename(remote, newname string) ([]string, error) {
|
||||||
|
|
||||||
ret := C.git_remote_rename(&cproblems, c.repo.ptr, cremote, cnewname)
|
ret := C.git_remote_rename(&cproblems, c.repo.ptr, cremote, cnewname)
|
||||||
if ret < 0 {
|
if ret < 0 {
|
||||||
problems := makeStringsFromCStrings(cproblems.strings, int(cproblems.count))
|
return []string{}, MakeGitError(ret)
|
||||||
return problems, MakeGitError(ret)
|
|
||||||
}
|
}
|
||||||
return []string{}, nil
|
|
||||||
|
problems := makeStringsFromCStrings(cproblems.strings, int(cproblems.count))
|
||||||
|
return problems, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *RemoteCollection) SetUrl(remote, url string) error {
|
func (c *RemoteCollection) SetUrl(remote, url string) error {
|
||||||
|
|
Loading…
Reference in New Issue