fixed GetSingleCommit url bug (#168)
This commit is contained in:
parent
13a7bf625b
commit
1423c9f77d
1 changed files with 1 additions and 1 deletions
|
@ -50,5 +50,5 @@ type Commit struct {
|
|||
// GetSingleCommit returns a single commit
|
||||
func (c *Client) GetSingleCommit(user, repo, commitID string) (*Commit, error) {
|
||||
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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue