Add git_remote_list + test #70

Merged
jezell merged 2 commits from add-remote-list into master 2014-03-20 23:29:05 -05:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 5d8db7f936 - Show all commits

View File

@ -136,7 +136,7 @@ func (repo *Repository) ListRemotes() ([]string, error) {
var r C.git_strarray
ecode := C.git_remote_list(&r, repo.ptr)
if ecode < 0 {
return make([]string, 0), MakeGitError(ecode)
return nil, MakeGitError(ecode)
}
defer C.git_strarray_free(&r)