Open lunny opened 5 years ago
I'm not well informed about the architecture, but afaik the gitea server implements migration logic for all these cases..
If so, the CLI shouldn't need to push from local disk, but trigger the migration on server side for the HTTP/SSH URL case.
This way the local clone can be made optional (with a --clone
BooleanFlag?), which might be of interest for large automated migrations.
@noerw gitea does not implement migration from local path
@lafriks I think it does, but is disabled by default.
but from server disk but this would be way to migrate from users local disk
Yes, just like @lafriks said. This in fact will do three steps when migrate from local disk:
The original migration from disk will migrate from gitea server's disk but not guest's.
This command also could be some part of scripts to batch migrate local git repositories to gitea server.
If we can implement a sub command
migrate
, that will be helpful.