diff options
| author | Mirko Nosenzo <[email protected]> | 2016-10-08 11:15:47 +0200 |
|---|---|---|
| committer | Mirko Nosenzo <[email protected]> | 2016-10-08 11:18:07 +0200 |
| commit | 717a47f7547811622fb1c08c28262a8c63af96fe (patch) | |
| tree | 004abe696e936e7a2051436302bd0ba0436d9b19 /remote.go | |
| parent | c6b94a160eef7546fa61e9e06f50f272d68bab8c (diff) | |
Remote Rename Fix
Problem string array is returned if no error is occurred
Diffstat (limited to 'remote.go')
| -rw-r--r-- | remote.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -467,10 +467,11 @@ func (c *RemoteCollection) Rename(remote, newname string) ([]string, error) { ret := C.git_remote_rename(&cproblems, c.repo.ptr, cremote, cnewname) if ret < 0 { - problems := makeStringsFromCStrings(cproblems.strings, int(cproblems.count)) - return problems, MakeGitError(ret) + return []string{}, MakeGitError(ret) } - return []string{}, nil + + problems := makeStringsFromCStrings(cproblems.strings, int(cproblems.count)) + return problems, nil } func (c *RemoteCollection) SetUrl(remote, url string) error { |
