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
..
2023-04-17 11:37:23 +08:00
2023-04-24 05:50:58 -04:00
2023-01-05 13:58:51 +02:00
2023-04-25 23:06:39 +08:00
2023-04-24 05:50:58 -04:00
2023-02-18 21:17:39 +02:00
2023-01-31 09:45:19 +08:00
2023-02-11 08:39:50 +08:00
2023-04-24 05:50:58 -04:00
2022-12-30 23:31:00 +08:00