Browse Source
Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186)
Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186)
* Ensure errors from IsDir propagate * Handle errors when checking IsFile * Handle and propagate errors from IsExist * Update modules/templates/static.go * Update modules/templates/static.go * Return after ctx.ServerError * Apply suggestions from code review * Fix tests The previous merge managed to break repo_form.go Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>mj-v1.14.3
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 384 additions and 94 deletions
-
19cmd/dump.go
-
8cmd/web.go
-
10contrib/environment-to-ini/environment-to-ini.go
-
2integrations/api_repo_test.go
-
55models/repo.go
-
40models/ssh_key.go
-
8models/upload.go
-
9models/wiki.go
-
14modules/auth/repo_form.go
-
8modules/git/hook.go
-
26modules/options/dynamic.go
-
15modules/options/static.go
-
15modules/repository/adopt.go
-
8modules/repository/check.go
-
9modules/repository/create.go
-
8modules/repository/generate.go
-
19modules/repository/hooks.go
-
14modules/repository/init.go
-
8modules/setting/lfs.go
-
24modules/setting/setting.go
-
9modules/ssh/ssh.go
-
13modules/templates/dynamic.go
-
15modules/templates/static.go
-
39modules/util/path.go
-
13routers/admin/repos.go
-
24routers/api/v1/admin/adopt.go
-
7routers/install.go
-
14routers/user/setting/adopt.go
-
25services/archiver/archiver.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue