forgejo/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.go Set commit id when ref used explicitly (#26447) 2023-08-12 07:33:12 +00:00
api_org.go
api_test.go
base.go Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) 2023-08-09 14:57:45 +08:00
captcha.go
context.go Use template context function for avatar rendering (#26385) 2023-08-10 11:19:39 +08:00
context_cookie.go
context_model.go
context_request.go
context_response.go Start using template context function (#26254) 2023-08-08 01:22:47 +00:00
context_template.go Start using template context function (#26254) 2023-08-08 01:22:47 +00:00
context_test.go
csrf.go
org.go
package.go
pagination.go
permission.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
private.go
repo.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
response.go
utils.go
xsrf.go
xsrf_test.go