lionheart / git-bigstore

Bigstore is a Git extension that helps you track big files in your repositories.
Apache License 2.0
183 stars 28 forks source link

bigstore filter not found in .gitattributes #39

Open michaelweinstein opened 6 years ago

michaelweinstein commented 6 years ago

When I try to git bigstore push or git bigstore pull, I get the following error: No bigstore gitattributes filters found. Is .gitattributes set up correctly?

In the code it looks like this message is printed when the regex can't find any bigstore filter, but I'm not sure why it's having trouble. I've tried a few different permutations of .gitattributes, but currently it looks like: *.stl filter=bigstore, as outlined in the README. Is there anything I'm missing here to be able to use bigstore push/pull?

mrpropellers commented 5 years ago

I encountered this issue when my gitattributes file had windows-style line endings but I was executing my 'git bigstore pull' from a linux terminal. I fixed it by changing 'line' to 'line.rstrip()' here: https://github.com/lionheart/git-bigstore/blob/master/bigstore/bigstore.py#L180