]> source.dussan.org Git - gitea.git/commit
response 404 for diff/patch of a commit that not exist (#15221) (#15237)
authora1012112796 <1012112796@qq.com>
Thu, 1 Apr 2021 23:57:05 +0000 (07:57 +0800)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 23:57:05 +0000 (19:57 -0400)
commitc6eb9b30ae202df3ac54b0d09abc5e0af52e1fa2
tree7b6d61862d38c8e07f11a33ff8fe15f62a3dfa80
parentf75a9b27b0fe291274e8ccd43d2cf7b88375519a
response 404 for diff/patch of a commit that not exist (#15221) (#15237)

* response 404 for diff/patch of a commit that not exist

fix #15217

Signed-off-by: a1012112796 <1012112796@qq.com>
* Update routers/repo/commit.go

Co-authored-by: silverwind <me@silverwind.io>
* use ctx.NotFound()

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: 6543 <6543@obermui.de>
modules/git/diff.go
routers/repo/commit.go