0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-13 08:41:50 +01:00
gitea/routers/web/user
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
..
setting Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
avatar.go
code.go Add missing tabs to org projects page (#22705) 2023-03-10 09:18:20 -06:00
home_test.go
home.go Refactor "route" related code, fix Safari cookie bug (#24330) 2023-04-27 02:06:45 -04:00
main_test.go
notification.go Fix pagination on /notifications/watching (#23564) 2023-03-20 21:07:14 -04:00
package.go
profile.go Fix unclear "Owner" concept (#24233) 2023-04-20 19:33:30 +02:00
search.go Add option to search for users is active join a team (#24093) 2023-04-14 14:48:36 -04:00
stop_watch.go
task.go