0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-21 14:47:20 +01:00
gitea/modules/context
Jack Hay c5888eb985
Set commit id when ref used explicitly (#26447)
In the `RepoRefForAPI()` context function `CommitID` is not set if `ref`
is used. It is set correctly for other if/else branches where `Commit`
is set. It doesn't appear that any routes that use `RepoRefForAPI()`
also use `CommitID` but that may be the case in the future.

## Changes
- Sets `ctx.Repo.CommitID` when `ref` is explicitly used for api routes
that use `RepoRefForAPI()`
2023-08-12 07:33:12 +00:00
..
access_log.go
api_org.go
api_test.go
api.go Set commit id when ref used explicitly (#26447) 2023-08-12 07:33:12 +00:00
base.go
captcha.go
context_cookie.go
context_model.go
context_request.go
context_response.go
context_template.go
context_test.go
context.go
csrf.go
org.go
package.go
pagination.go
permission.go
private.go
repo.go
response.go
utils.go
xsrf_test.go
xsrf.go