summaryrefslogtreecommitdiffstats
path: root/modules/task
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-09 06:21:00 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-11-08 17:21:00 -0500
commitf02138a1480015b9aa6ab5eef82506242d98612e (patch)
treec36279722458cd88c9146e697668b2b7c5753c18 /modules/task
parent55bdc9aa38177f75fdae4cb96e98bf465d7ecb2a (diff)
downloadgitea-f02138a1480015b9aa6ab5eef82506242d98612e.tar.gz
gitea-f02138a1480015b9aa6ab5eef82506242d98612e.zip
Fix bug when migrate from API (#8631)
* fix bug when migrate from API * fix test * fix test * improve * fix error message
Diffstat (limited to 'modules/task')
-rw-r--r--modules/task/migrate.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/task/migrate.go b/modules/task/migrate.go
index 5d15a506d7..247403d7be 100644
--- a/modules/task/migrate.go
+++ b/modules/task/migrate.go
@@ -97,8 +97,6 @@ func runMigrateTask(t *models.Task) (err error) {
opts.MigrateToRepoID = t.RepoID
repo, err := migrations.MigrateRepository(t.Doer, t.Owner.Name, *opts)
if err == nil {
- notification.NotifyMigrateRepository(t.Doer, t.Owner, repo)
-
log.Trace("Repository migrated [%d]: %s/%s", repo.ID, t.Owner.Name, repo.Name)
return nil
}