mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-24 05:33:40 +09:00
refactor: hide git repo path details from more packages (#38601)
Remove `RepoPath` from "models/repo" package, remove `UserPath` from "models/user" package, use `WithRepo` for more places, fine tune tests.
This commit is contained in:
@@ -15,8 +15,8 @@ func repoCodeGitRepoManagedID(repoID int64) string {
|
||||
|
||||
func (repo *Repository) CodeStorageRepo() gitrepo.RepositoryFacade {
|
||||
id := repoCodeGitRepoManagedID(repo.ID)
|
||||
repoPath := gitrepo.RepoCodeGitRepoRelativePath(repo.OwnerName, repo.Name)
|
||||
return gitrepo.RepositoryManaged(id, repoPath)
|
||||
relPath := gitrepo.RepoCodeGitRepoRelativePath(repo.OwnerName, repo.Name)
|
||||
return gitrepo.RepositoryManaged(id, relPath)
|
||||
}
|
||||
|
||||
func (repo *Repository) GitRepoLocation() string {
|
||||
|
||||
Reference in New Issue
Block a user