fixed incorrect method for GetRepo in Drone client

This commit is contained in:
Brad Rydzewski 2015-01-15 00:22:33 -08:00
parent dac460f488
commit 768b299543
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ type RepoService struct {
func (s *RepoService) Get(host, owner, name string) (*model.Repo, error) { func (s *RepoService) Get(host, owner, name string) (*model.Repo, error) {
var path = fmt.Sprintf("/api/repos/%s/%s/%s", host, owner, name) var path = fmt.Sprintf("/api/repos/%s/%s/%s", host, owner, name)
var repo = model.Repo{} var repo = model.Repo{}
var err = s.run("PUT", path, nil, &repo) var err = s.run("GET", path, nil, &repo)
return &repo, err return &repo, err
} }

File diff suppressed because one or more lines are too long