#2679 Create script or SOP to re-write git history to remove binary blobs
Closed: Fixed None Opened 13 years ago by kevin.

= phenomenon =

Some pkgs git repos have binary blobs checked in.

= background analysis =

= implementation recommendation =

We need a script/SOP to re-write history, removing the blob from the commit it was added in. Additionally, we need a new koji tag based on the OLD hash of the commit that has the src.rpms tagged into it from that build. This will allow us to keep track of them and find them if we need them.


I have the start for this script uploaded in ticket #2678 (that version can report them).

I will try to finish this script to also implement deleting, and upload it here.

With some help from nb, hereby the version of the script that can be run to generate a listing of all blobs (as determined by mimetype), and when run with -D or --delete, will also delete the blobs, and rewrite git history
find-report-delete.tar.gz

Login to comment on this ticket.

Metadata