Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 1423c9f

Browse files
xuecanlonglafriks
authored andcommitted
fixed GetSingleCommit url bug (#168)
1 parent 13a7bf6 commit 1423c9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitea/repo_commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ type Commit struct {
5050
// GetSingleCommit returns a single commit
5151
func (c *Client) GetSingleCommit(user, repo, commitID string) (*Commit, error) {
5252
commit := new(Commit)
53-
return commit, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/commits/%s", user, repo, commitID), nil, nil, &commit)
53+
return commit, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/git/commits/%s", user, repo, commitID), nil, nil, &commit)
5454
}

0 commit comments

Comments
 (0)