]> source.dussan.org Git - gitea.git/commit
response 404 for diff/patch of a commit that not exist (#15221)
authora1012112796 <1012112796@qq.com>
Thu, 1 Apr 2021 05:17:14 +0000 (13:17 +0800)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 05:17:14 +0000 (08:17 +0300)
commit007fb00c0ec613b89e2a272f224b60c174fc78bd
tree6d830d6680da1a255a0c02697282e6f698b4b2dd
parentf07b137e040dc0531ce646763a5c874547d1ac7f
response 404 for diff/patch of a commit that not exist (#15221)

* 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>
modules/git/diff.go
routers/repo/commit.go