@ -59,7 +59,7 @@ func MigrateRepository(ctx context.Context, doer *models.User, ownerName string,
opts . PullRequests = false
opts . PullRequests = false
opts . GitServiceType = structs . PlainGitService
opts . GitServiceType = structs . PlainGitService
downloader = NewPlainGitDownloader ( ownerName , opts . RepoName , opts . CloneAddr )
downloader = NewPlainGitDownloader ( ownerName , opts . RepoName , opts . CloneAddr )
log . Trace ( "Will migrate from git: %s" , opts . CloneAddr )
log . Trace ( "Will migrate from git: %s" , opts . OriginalURL )
} else if opts . GitServiceType == structs . NotMigrated {
} else if opts . GitServiceType == structs . NotMigrated {
opts . GitServiceType = theFactory . GitServiceType ( )
opts . GitServiceType = theFactory . GitServiceType ( )
}
}
@ -77,7 +77,7 @@ func MigrateRepository(ctx context.Context, doer *models.User, ownerName string,
log . Error ( "rollback failed: %v" , err1 )
log . Error ( "rollback failed: %v" , err1 )
}
}
if err2 := models . CreateRepositoryNotice ( fmt . Sprintf ( "Migrate repository from %s failed: %v" , opts . CloneAddr , err ) ) ; err2 != nil {
if err2 := models . CreateRepositoryNotice ( fmt . Sprintf ( "Migrate repository from %s failed: %v" , opts . OriginalURL , err ) ) ; err2 != nil {
log . Error ( "create respotiry notice failed: " , err2 )
log . Error ( "create respotiry notice failed: " , err2 )
}
}
return nil , err
return nil , err