mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 04:17:52 +01:00
parent
0e53baf6d1
commit
f8503b5fbf
@ -92,7 +92,6 @@ func runMigrateTask(t *models.Task) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
opts.MigrateToRepoID = t.RepoID
|
opts.MigrateToRepoID = t.RepoID
|
||||||
var repo *models.Repository
|
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(graceful.GetManager().ShutdownContext())
|
ctx, cancel := context.WithCancel(graceful.GetManager().ShutdownContext())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
@ -106,9 +105,9 @@ func runMigrateTask(t *models.Task) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
repo, err = migrations.MigrateRepository(ctx, t.Doer, t.Owner.Name, *opts)
|
t.Repo, err = migrations.MigrateRepository(ctx, t.Doer, t.Owner.Name, *opts)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
log.Trace("Repository migrated [%d]: %s/%s", repo.ID, t.Owner.Name, repo.Name)
|
log.Trace("Repository migrated [%d]: %s/%s", t.Repo.ID, t.Owner.Name, t.Repo.Name)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user