mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-22 23:01:38 +02:00
by the way, remove some unnecessary "models" imports from model migration package, fix migration test model init bug (modelmigration/migrationtest/tests.go)
14 lines
318 B
Go
14 lines
318 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package base
|
|
|
|
import (
|
|
repo_model "gitea.dev/models/repo"
|
|
"gitea.dev/modules/git/gitcmd"
|
|
)
|
|
|
|
func LocalCodeGitRepo(ownerName, repoName string) gitcmd.RepositoryFacade {
|
|
return repo_model.CodeRepoByName(ownerName, repoName)
|
|
}
|