diff options
Diffstat (limited to 'routers/api/v1/repo/commits.go')
-rw-r--r-- | routers/api/v1/repo/commits.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go index 9a0fd1d0b6..e4bea4dee7 100644 --- a/routers/api/v1/repo/commits.go +++ b/routers/api/v1/repo/commits.go @@ -147,7 +147,7 @@ func GetAllCommits(ctx *context.APIContext) { listOptions.PageSize = setting.Git.CommitsRangeSize } - sha := ctx.Query("sha") + sha := ctx.Form("sha") var baseCommit *git.Commit if len(sha) == 0 { |