diff options
Diffstat (limited to 'services/migrations/migrate.go')
-rw-r--r-- | services/migrations/migrate.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/migrations/migrate.go b/services/migrations/migrate.go index 7bca128ac..ec1d59efa 100644 --- a/services/migrations/migrate.go +++ b/services/migrations/migrate.go @@ -172,6 +172,11 @@ func newDownloader(ctx context.Context, ownerName string, opts base.MigrateOptio return downloader, nil } +// InternalMigrateRepository function +func InternalMigrateRepository(downloader base.Downloader, uploader base.Uploader, opts base.MigrateOptions) error { + return migrateRepository(downloader, uploader, opts, nil) +} + // migrateRepository will download information and then upload it to Uploader, this is a simple // process for small repository. For a big repository, save all the data to disk // before upload is better |