Hello,
I have been trying for a while now to modify a gerrit hosted project using the BFG tool. Basically to remove big binary files that should have never made it to the project...
This does not seem to be supported by gerrit. Here is the detail description of the problem:
Let an existing git repository in gerrit project called 'project1'. This project as big files I want to get rid of.
To do so I first 'mirror' clone to a separate git project 'project2' using bare git mirror clone command.
This project2 is not under gerrit git repositories.
In gerrit I create a brand new project 'project2' without initial commit and then using git command line I push 'mirror' the previously mirrored git repo 'project2'.
At this stage I have what seems to be a working gerrit project name 'project2', I can push reviews to it and all seems fine.
However, whenever I try to perform a gerrit reindex from this state, it fails miserably. My guess is that gerrit stores its metadata in the repository in a manner that if the git history is modified by BFG, gerrit will not be able to recover from this new state.
Does anyone have any idea how this could be worked out? Is there some way to cleanup a git repository from all the gerrit metadata without breaking the repo?
Thanks in advance!