Migration from GHES doesn't honor local archive or archive URL
Description
When the source is GHES , the migrate-repo command doesn't honor the --git-archive-path' and --git-archive-url` parameters. Even if they are passed it always tries to export the archive from GHES
Reproduction Steps
Try to migrate with a local archive (eg: exported with ghe-migrator) and pass it to GEI using
--git-archive-path or --metadata-archive-path an archived in storage and passed with --metadata-archive-url and --git-archive-url
What’s the command you are running? Be sure you’re not passing ghes-api-url or it will always try to generate new archive.
If the ghes-api-url is not passed then the "wrong" source is used and then migration will fail.
can you share the exact combination of args you are using?
something like
gh gei migrate-repo --github-source-org XXXX --source-repo XXXX --github-target-org XXXX --target-repo XXXXX --ghes-api-url https://github-blah.com/api/v3
something like
gh gei migrate-repo --github-source-org XXXX --source-repo XXXX --github-target-org XXXX --target-repo XXXXX --ghes-api-url https://github-blah.com/api/v3
I thought you were using the archive-path args??
I thought you were using the archive-path args??
We tried both archive-path and archive-url (first URL and then path). The results are the same