mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 11:43:10 +02:00
refactor: clean up git repo and model migration packages (#38564)
enable the golangci depguard lint rule: deny "models" and its sub packages in "modelmigration" package.
This commit is contained in:
1 parent
fa64b4627a
commit
1acf93d854
43 files changed
+243
-167
No files matched your search
@@ -8,7 +8,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"gitea.dev/modules/git"
|
||||
"gitea.dev/modules/git/gitcmd"
|
||||
"gitea.dev/modules/git/gitrepo"
|
||||
"gitea.dev/modules/setting"
|
||||
)
|
||||
|
||||
@@ -19,6 +19,6 @@ func CreateTemporaryGitRepo(prefix string) (tmpPath string, tmpRepo git.Reposito
|
||||
if err != nil {
|
||||
return "", nil, nil, fmt.Errorf("failed to create temp dir with prefix %s: %w", tmpNamePrefix, err)
|
||||
}
|
||||
tmpRepo = gitcmd.RepositoryUnmanaged(tmpPath)
|
||||
tmpRepo = gitrepo.RepositoryUnmanaged(tmpPath)
|
||||
return tmpPath, tmpRepo, cancel, nil
|
||||
}
|
||||
Reference in new issue
Block a user