0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-20 10:54:32 +01:00
gitea/models
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
..
actions Support upload outputs and use needs context on Actions (#24230) 2023-04-22 16:12:41 -04:00
activities
admin
asymkey
auth
avatars
db Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
dbfs
fixtures
git Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
issues Load reviewer for comments when dismissing a review (#24281) 2023-04-23 11:04:23 -04:00
migrations Display when a repo was archived (#22664) 2023-04-26 10:46:26 -04:00
organization Add owner team permission check test (#24096) 2023-04-19 19:19:13 -04:00
packages
perm
project
pull
repo Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
secret
system
unit
unittest Enable forbidigo linter (#24278) 2023-04-24 05:50:58 -04:00
user Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate_test.go
migrate.go
org_team_test.go
org_team.go Remove org users who belong to no teams (#24247) 2023-04-24 15:52:38 -04:00
org_test.go
org.go
repo_collaboration_test.go
repo_collaboration.go
repo_test.go
repo_transfer_test.go
repo_transfer.go Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
repo.go