Merge pull request #818 from bradrydzewski/master

fixed incorrect method for GetRepo in Drone client
This commit is contained in:
Brad Rydzewski 2015-01-15 02:07:18 -08:00
commit f33b6efb74
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) {
var path = fmt.Sprintf("/api/repos/%s/%s/%s", host, owner, name)
var repo = model.Repo{}
var err = s.run("PUT", path, nil, &repo)
var err = s.run("GET", path, nil, &repo)
return &repo, err
}

File diff suppressed because one or more lines are too long