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 Use User.ID instead of User.Name in ActivityPub API for Person IRI (#23823) 2023-04-04 10:08:23 +08:00
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 Fix admin team access mode value in team_unit table (#24012) 2023-04-13 21:06:10 +02:00
packages
repo Fix issue attachment handling (#24202) 2023-04-20 02:39:44 -04:00
settings
swagger Add API for gitignore templates (#22783) 2023-04-27 11:51:20 +08:00
user Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
utils
api.go Add API for gitignore templates (#22783) 2023-04-27 11:51:20 +08:00
auth.go
auth_windows.go