bozaro / git-lfs-migrate

Simple project for convert old repository for using git-lfs feature
MIT License
222 stars 29 forks source link

Fix object size being 0 when retrying request (#14) #16

Closed robinst closed 8 years ago

robinst commented 8 years ago

Because the code only put the hash in the cache and not the size, the size that was sent in a retried request was 0.

Some server implementations check the size, so those requests may fail.

To fix it, also put the size in the cache and use it when creating a request from the cache.

bozaro commented 8 years ago

It's really good change. Thanks a lot :+1:

bozaro commented 8 years ago

Sorry for delay. I was offline for two weeks.

robinst commented 8 years ago

No worries, thanks! :)