forgejo/routers/repo
a1012112796 007fb00c0e
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>
2021-04-01 08:17:14 +03:00
..
activity.go
attachment.go Add Content-Length header to HEAD requests (#14542) 2021-02-05 21:10:40 +01:00
blame.go
branch.go Create tag on ui (#13467) 2021-02-28 19:57:45 +00:00
commit.go response 404 for diff/patch of a commit that not exist (#15221) 2021-04-01 08:17:14 +03:00
compare.go Add Tabular Diff for CSV files (#14661) 2021-03-29 22:44:28 +02:00
download.go Add Content-Length header to HEAD requests (#14542) 2021-02-05 21:10:40 +01:00
editor.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
editor_test.go
http.go
issue.go Add DefaultMergeStyle option to repository (#14789) 2021-03-27 15:55:40 +01:00
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_test.go Fix bug when combine label comments (#14894) 2021-03-05 16:17:32 +01:00
issue_timetrack.go Add UI to delete tracked times (#14100) 2021-02-19 12:52:11 +02:00
issue_watch.go
lfs.go
main_test.go
middlewares.go
migrate.go Fixed wrong migrate url error description. (#15010) 2021-03-17 03:34:09 +01:00
milestone.go
projects.go Sort / Move project boards (#14634) 2021-02-11 17:32:27 +01:00
projects_test.go
pull.go Add Tabular Diff for CSV files (#14661) 2021-03-29 22:44:28 +02:00
pull_review.go Add dismiss review feature (#12674) 2021-02-11 18:32:25 +01:00
release.go Implement delete release attachments and update release attachments' name (#14130) 2021-03-23 00:09:51 +08:00
release_test.go
repo.go Repository transfer has to be confirmed, if user can not create repo for new owner (#14792) 2021-03-01 01:47:30 +01:00
search.go Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 2021-02-19 22:36:43 +01:00
setting.go Add DefaultMergeStyle option to repository (#14789) 2021-03-27 15:55:40 +01:00
setting_protected_branch.go
settings_test.go
topic.go
view.go Repository transfer has to be confirmed, if user can not create repo for new owner (#14792) 2021-03-01 01:47:30 +01:00
webhook.go [refactor] Unify the export of user data via API (#15144) 2021-03-27 17:45:26 +01:00
wiki.go
wiki_test.go