1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 14:44:41 +00:00
gitea/routers/web/admin
wxiaoguang a6450494c3
Fix unclear IsRepositoryExist logic (#24374)
There was only one `IsRepositoryExist` function, it did: `has && isDir`

However it's not right, and it would cause 500 error when creating a new
repository if the dir exists.

Then, it was changed to `has || isDir`, it is still incorrect, it
affects the "adopt repo" logic.

To make the logic clear:

* IsRepositoryModelOrDirExist
* IsRepositoryModelExist
2023-04-28 14:14:26 -04:00
..
admin_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
admin.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
applications.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
auths.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
config.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
emails.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
hooks.go Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
notice.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
orgs.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
packages.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
repos.go Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
runners.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
users_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
users.go Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00