0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 02:44:36 +01:00
gitea/services/repository
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
..
archiver
files Support uploading file to empty repo by API (#24357) 2023-04-26 21:36:26 -04:00
adopt.go Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
adopt_test.go Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
avatar.go
avatar_test.go
branch.go
cache.go
check.go
fork.go
fork_test.go
hooks.go
lfs.go
main_test.go
push.go Fix tags view (#23243) 2023-03-27 21:41:33 +08:00
repository.go Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
repository_test.go
review.go
review_test.go
template.go
transfer.go
transfer_test.go