heroku-repo icon indicating copy to clipboard operation
heroku-repo copied to clipboard

never run aggressive

Open wuputah opened this issue 11 years ago • 3 comments

aggressive is a very intensive and most likely unneeded task that is unlikely to finish in a dyno. for more on aggressive, see: http://metalinguist.wordpress.com/2007/12/06/the-woes-of-git-gc-aggressive-and-how-git-deltas-work/

wuputah avatar Dec 17 '13 23:12 wuputah

Should we perhaps leave it as a flag? Perhaps the arguments to heroku repo:gc would just be passed to git gc. Then you'd also be able to set --prune, if you wanted to.

tt avatar Dec 17 '13 23:12 tt

Perhaps, but I don't know how to do that. In any case, I think the most sane default is definitely not --aggressive.

wuputah avatar Dec 18 '13 00:12 wuputah

I'd definitely say drop the --agressive by default. I originally did this for a handful of specific people who were doing very Dumb Things with their repos, who needed a crazy level of fixing. The general case should be a normal GC. I do like the idea of just passing through args to the git gc command, sounds neat and way more flexible.

lstoll avatar Dec 18 '13 11:12 lstoll