You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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
1 year ago
..
archiver refactor some functions to support ctx as first parameter (#21878) 2 years ago
files Support uploading file to empty repo by API (#24357) 1 year ago
adopt.go Fix unclear `IsRepositoryExist` logic (#24374) 1 year ago
adopt_test.go Use more specific test methods (#24265) 1 year ago
avatar.go Use context parameter in services/repository (#23186) 1 year ago
avatar_test.go Use context parameter in services/repository (#23186) 1 year ago
branch.go Use context parameter in services/repository (#23186) 1 year ago
cache.go Implement FSFE REUSE for golang files (#21840) 2 years ago
check.go Refactor git command package to improve security and maintainability (#22678) 1 year ago
fork.go Use context parameter in services/repository (#23186) 1 year ago
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2 years ago
hooks.go Add user webhooks (#21563) 1 year ago
lfs.go Add cron method to gc LFS MetaObjects (#22385) 1 year ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
push.go Fix tags view (#23243) 1 year ago
repository.go Make label templates have consistent behavior and priority (#23749) 1 year ago
repository_test.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
review.go Use context parameter in services/repository (#23186) 1 year ago
review_test.go Use context parameter in services/repository (#23186) 1 year ago
template.go Use context parameter in services/repository (#23186) 1 year ago
transfer.go Use context parameter in services/repository (#23186) 1 year ago
transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago