fixed GetSingleCommit url bug (#168)

This commit is contained in:
xuecanlong 2019-05-03 03:58:37 +08:00 committed by Lauris BH
parent 13a7bf625b
commit 1423c9f77d

View file

@ -50,5 +50,5 @@ type Commit struct {
// GetSingleCommit returns a single commit // GetSingleCommit returns a single commit
func (c *Client) GetSingleCommit(user, repo, commitID string) (*Commit, error) { func (c *Client) GetSingleCommit(user, repo, commitID string) (*Commit, error) {
commit := new(Commit) commit := new(Commit)
return commit, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/commits/%s", user, repo, commitID), nil, nil, &commit) return commit, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/git/commits/%s", user, repo, commitID), nil, nil, &commit)
} }