Skip to content

Update migrated repositories' issues/comments/prs poster id if user has a github external user saved #7751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Oct 14, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
lunny committed Oct 14, 2019
commit a36ef4a8ee6cec38d89564a8fb3a1995337754d2
6 changes: 2 additions & 4 deletions modules/migrations/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ func MigrateRepository(doer *models.User, ownerName string, opts base.MigrateOpt
opts.GitServiceType = structs.PlainGitService
downloader = NewPlainGitDownloader(ownerName, opts.RepoName, opts.CloneAddr)
log.Trace("Will migrate from git: %s", opts.CloneAddr)
} else {
if opts.GitServiceType == structs.NotMigrated {
opts.GitServiceType = theFactory.GitServiceType()
}
} else if opts.GitServiceType == structs.NotMigrated {
opts.GitServiceType = theFactory.GitServiceType()
}

uploader.gitServiceType = opts.GitServiceType
Expand Down