1
0
Fork 0
forgejo/routers/api/v1
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
..
activitypub
admin Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
misc Add API for gitignore templates (#22783) 2023-04-27 11:51:20 +08:00
notify
org
packages
repo
settings
swagger Add API for gitignore templates (#22783) 2023-04-27 11:51:20 +08:00
user
utils
api.go Add API for gitignore templates (#22783) 2023-04-27 11:51:20 +08:00
auth.go
auth_windows.go