aboutsummaryrefslogtreecommitdiffstats
path: root/services/mirror/mirror_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-15 01:30:01 +0800
committerAntoine GIRARD <sapk@users.noreply.github.com>2019-12-14 18:30:01 +0100
commit7b2ff82d209c01be8082eaa9b888f93a00850d4d (patch)
treee3876a3f5c4b204b97bb0b611493c27453204a2c /services/mirror/mirror_test.go
parent2904abdc22da36a7110d0b69af0fd45cdb74ebf6 (diff)
downloadgitea-7b2ff82d209c01be8082eaa9b888f93a00850d4d.tar.gz
gitea-7b2ff82d209c01be8082eaa9b888f93a00850d4d.zip
Move some repository methods from models to modules/repository (#9353)
* Move some repository methods from models to modules/repository * fix test
Diffstat (limited to 'services/mirror/mirror_test.go')
-rw-r--r--services/mirror/mirror_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/mirror/mirror_test.go b/services/mirror/mirror_test.go
index 81811ffe4a..816ef230fd 100644
--- a/services/mirror/mirror_test.go
+++ b/services/mirror/mirror_test.go
@@ -10,6 +10,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/git"
+ "code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/structs"
release_service "code.gitea.io/gitea/services/release"
@@ -46,7 +47,7 @@ func TestRelease_MirrorDelete(t *testing.T) {
})
assert.NoError(t, err)
- mirror, err := models.MigrateRepositoryGitData(user, user, mirrorRepo, opts)
+ mirror, err := repository.MigrateRepositoryGitData(user, user, mirrorRepo, opts)
assert.NoError(t, err)
gitRepo, err := git.OpenRepository(repoPath)