Skip to main content
ertius.org

repushing to git lfs

After my ... low-intensity porting of forgejo from sqlite3 and local disk to Posgres and Garage, I thought I could just skip migrating the two entire LFS blobs I had and repush them. Unfortunately, my first few attempts at pushing didn't work, which also made the repository un-check-out-able:

 git clone ssh://git@host/user/repo.git ,,blah
Cloning into ',,blah'...
remote: Enumerating objects: 5774, done.
remote: Counting objects: 100% (5774/5774), done.
remote: Compressing objects: 100% (1779/1779), done.
remote: Total 5774 (delta 3596), reused 5690 (delta 3558), pack-reused 0 (from 0)
Receiving objects: 100% (5774/5774), 2.16 MiB | 2.25 MiB/s, done.
Resolving deltas: 100% (3596/3596), done.
Downloading blobs/2020-summit-list.pdf (74 KB)
Error downloading object: blobs/2020-summit-list.pdf (6f384f9): Smudge error: Error downloading blobs/asdflkjasdf.png (36dc61c614bef02e38ee1190bba0b0747ea58bd805a3a7c32f39977669f36609): [36dc61c614bef02e38ee1190bba0b0747ea58bd805a3a7c32f39977669f36609] Not Found: [404] Not Found

Errors logged to '/Users/rob/scratch/,,blah/.git/lfs/logs/20251124T029128.210130.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: blobs/asdflkjasdf.png: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git st

I did eventually find this, which revealed the secret:

 git lfs push --all origin main
Uploading LFS objects: 100% (3/3), 6.8 MB | 0 B/s, done.