Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete configlet binaries from history? #102

Closed
kytrinyx opened this issue Aug 31, 2014 · 3 comments
Closed

Delete configlet binaries from history? #102

kytrinyx opened this issue Aug 31, 2014 · 3 comments

Comments

@kytrinyx
Copy link
Member

I made a really stupid choice a while back to commit the cross-compiled
binaries for configlet (the tool that sanity-checks the config.json
against the implemented problems) into the repository itself.

Those binaries are HUGE, and every time they change the entire 4 or 5 megs get
recommitted. This means that cloning the repository takes a ridiculously long
time.

I've added a script that can be run on travis to grab the latest release from
the configlet repository (bin/fetch-configlet), and travis is set up to run
this now instead of using the committed binary.

I would really like to thoroughly delete the binaries from the entire git
history, but this will break all the existing clones and forks.

The commands I would run are:

# ensure this happens on an up-to-date master
git checkout master && git fetch origin && git reset --hard origin/master

# delete from history
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch bin/configlet-*' --prune-empty

# clean up
rm -rf .git/refs/original/
git reflog expire --all
git gc --aggressive --prune

# push up the new master, force override existing master branch
git push -fu origin master

If we do this everyone who has a fork will need to make sure that their master
is reset to the new upstream master:

git checkout master
git fetch upstream master
git reset --hard upstream/master
git push -fu origin master

We can at-mention (@) all the contributors and everyone who has a fork here in this
issue if we decide to do it.

The important question though, is: Is it worth doing?

Do you have any other suggestions of how to make sure this doesn't confuse people and break their
repository if we do proceed with this change?

@soniakeys
Copy link
Contributor

I think it is worth doing and I don't think it will confuse many people. My screen's showing 12 forks at the moment. That doesn't seem very many and the required recipe seems simple enough to follow.

@kytrinyx
Copy link
Member Author

OK, good, I'll go ahead.

Heads up @bmatsuo @dchapes @DuoSRX @johngb @michaelavila @nathany @ncsibra @Phili-tech @sjakobi @sunzenshen @wilmoore @wvmitchell - If you want to contribute to this repository in the future, you'll need to reset or reclone.

@kytrinyx
Copy link
Member Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants