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
..
2023-04-17 11:37:23 +08:00
2023-07-14 11:00:31 +08:00
2023-07-07 05:31:56 +00:00
2023-07-07 05:31:56 +00:00
2023-07-07 05:31:56 +00:00
2023-05-21 22:35:11 +00:00
2023-07-07 05:31:56 +00:00
2023-02-11 08:39:50 +08:00
2022-12-30 23:31:00 +08:00
2023-08-10 02:05:37 +00:00
2023-07-07 05:31:56 +00:00
2023-07-25 22:21:09 +00:00