rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
10.95k stars 540 forks source link

MissingObjectException: Missing tree #331

Open bloopkin opened 4 years ago

bloopkin commented 4 years ago

First thank you for this great tool!

I had an issue today while running the tool I got the attached error.

I had ran bfg twice already and was running it for a third time:

/d/jdk1.8.0_45/bin/java -jar ../bfg-1.13.0.jar --strip-blobs-bigger-than 9M /d/jdk1.8.0_45/bin/java -jar ../bfg-1.13.0.jar --delete-files "{data_rpt.sql,data.sql,newdata.sql,pdf,apache-tomcat-.zip,tomcat.zip,backup.zip}" /d/jdk1.8.0_45/bin/java -jar ../bfg-1.13.0.jar --delete-folders "{projects2.0,content-f,content-c,content-i,content-a,specifications,Demo341,testlibs}"

It seems to be an intermittent issue because I restored the repository from it's original state, ran the same commands and did not get an issue this time.

Unfortunately I won't be able to share my repository to reproduce the issue. bfg-error.txt

javabrett commented 4 years ago

This is a known possible issue if you don't run all the directed steps after one/each run of BFG. It currently only supports a single run per git gc following run.

bloopkin commented 4 years ago

Thanks for the feedback! I'll keep that in mind next time I need to use it.