summaryrefslogtreecommitdiffstats
path: root/services/task/migrate.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/task/migrate.go')
-rw-r--r--services/task/migrate.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/task/migrate.go b/services/task/migrate.go
index 8e9f6115bc..dbe237b691 100644
--- a/services/task/migrate.go
+++ b/services/task/migrate.go
@@ -11,6 +11,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/db"
+ repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/graceful"
"code.gitea.io/gitea/modules/json"
@@ -79,7 +80,7 @@ func runMigrateTask(t *models.Task) (err error) {
}
// if repository is ready, then just finish the task
- if t.Repo.Status == models.RepositoryReady {
+ if t.Repo.Status == repo_model.RepositoryReady {
return nil
}