client: Git LFS - cannot push files on windows
Hi! I’m testing the new functionality from v5.1.0 - git LFS support. I do everything what’s said in doc (https://keybase.io/docs/git/index). Everything is working for normal repo but when I try to push the LFS connected file I got an error:
git push Initializing Keybase… done. Syncing with Keybase… done. Uploading LFS objects: 100% (1/1), 1.2 GB | 0 B/s, done invalid character ‘U’ looking for beginning of value error: failed to push some refs to ‘keybase://team/xxx/Repo2’
Propably Uploading LFS objects part isn’t done because it not take any time to upload file.
Is it a bug or maybe am I doing something wrong?
I’m on Windows 10. My log id: 2dc714afb17faf0439897d1c
Thanks!
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 26 (10 by maintainers)
Thanks all. I just got some testing in on a Windows device, and you’ll never guess this one simple trick to getting it to work…
Instead of completely removing each
\\\"from the.git/configfile, you can change them into\". That solved it for me.I swear I tested the current code in CMD before and got it to work, so I’ll have to go back and try to figure out how to make it work automatically in the next release. Sorry for the inconvenience. Let me know if the above helps.
From the feedback in this issue I guess this problem is not related to Windows based OS only. I can confirm that the following additional escaping in the
.git/configfile of my repository also fixed the „invalid character ‘U’ looking for beginning of value” error on my Linux system.I’m running Arch Linux kernel
5.4.1-arch1-1 x86_64and the Keybase versionsClient: 5.1.1-20191211223501+15bbb94c23andService: 5.1.1-20191211223501+15bbb94c23.Thanks, that was helpful! I think we probably need to re-think the way we upload huge collections of LFS files written all at once. We’re trying to sync them all at once, instead of in small batches, and I think that’s causing stress and maybe hanging on your system. I’ll make an internal ticket to address.
In the meantime, if possible, I recommend only pushing small batches of files if you can break them up that way. Sorry for the bad experience, and thanks for the report!