Create a rake task that can create a project from an existing project
We need a project recovery tool that can take one project and copy the repository to another project using git-fast-export
and git-fast-import
. This will be a necessary tool for admins to recover if something were to go wrong with newer Git repository formats, such as SHA256 object sha or reftables.
gitaly#5954 describes a change in Gitaly to add a pair of RPCs to allow using git-fast-import
and git-fast-export
.
The way this rake task can work is to take as inputs, a project id, and a project name to create. It would then create a new empty project but copy over the repository wholesale using git-fast-export
/git-fast-import
.