summaryrefslogtreecommitdiffstats
path: root/routers/install
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-03-08 15:17:31 -0500
committerGitHub <noreply@github.com>2023-03-08 15:17:31 -0500
commit54c674c93644093a1dd693b50c743cdc6120b6a7 (patch)
tree93f96ef650cad2956e7124320130232da2969fb2 /routers/install
parent2ba58fab22737d73e459c40f9ee6fab3c9947d8c (diff)
downloadgitea-54c674c93644093a1dd693b50c743cdc6120b6a7.tar.gz
gitea-54c674c93644093a1dd693b50c743cdc6120b6a7.zip
Fix panic when getting notes by ref (#23372) (#23377)
Backport #23372 Fix #23357 . Now the `/repos/{owner}/{repo}/git/notes/{sha}` API supports getting notes by a ref or sha (https://try.gitea.io/api/swagger#/repository/repoGetNote). But the `GetNote` func can only accept commit ID. https://github.com/go-gitea/gitea/blob/a12f5757372f751d25f9e5ca1f168f6920ded894/modules/git/notes_nogogit.go#L18 So we need to convert the query parameter to commit ID before calling `GetNote`. Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/install')
0 files changed, 0 insertions, 0 deletions