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

invalid id error on misssing LFS objects #353

Open
dwsail opened this issue Jan 17, 2020 · 1 comment
Open

invalid id error on misssing LFS objects #353

dwsail opened this issue Jan 17, 2020 · 1 comment

Comments

@dwsail
Copy link

dwsail commented Jan 17, 2020

When trying to remove a specific version of a Git LFS file by its OID, I always get the following error:

java -jar bfg-1.13.0.jar -bi del_ids my_repo_folder
Error: Option --strip-blobs-with-ids failed when given 'del_ids'. MainException: class org.eclipse.jgit.errors.InvalidObjectIdException(Invalid id: 3cc47cf37608f1e833aaadfd7ad2df6adc2e13d11b29f3f026c260f6a82cf0d7

The file del_ids just consists of a single line where the OID (3cc47cf...blahblahblah) is listed which I wanted to remove.
If I do a
git log -p -S 3cc47cf37608f1e833aaadfd7ad2df6adc2e13d11b29f3f026c260f6a82cf0d7 --all
I get the commits listed where this file was added and later removed (replaced by a newer version).

I'm desperately trying to get a few Git LFS OIDs out of the history of my git repo to have it clean again.

@dangbert
Copy link

dangbert commented Feb 1, 2021

I am also experiencing this issue when trying to delete a list of files from a folder as in this example

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