0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 13:44:43 +01:00
gitea/services
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
..
actions Handle canceled workflow as a warning instead of a fail (#24282) 2023-04-23 14:41:55 -04:00
agit
asymkey
attachment
auth Move secrets and runners settings to actions settings (#24200) 2023-04-27 20:08:47 -04:00
automerge
context
convert Display when a repo was archived (#22664) 2023-04-26 10:46:26 -04:00
cron
externalaccount
forms
gitdiff
issue
lfs Fix auth check bug (#24382) 2023-04-27 22:43:27 +02:00
mailer
markup
migrations
mirror
org
packages
pull
release
repository Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
task
user
webhook
wiki Fix bug when deleting wiki with no code write permission (#24274) 2023-04-23 17:22:16 -04:00