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
git cannot treat grouped pattern produced by bfg --convert-to-git-lfs #143
Comments
This problem is a limitation of glob-processing in Git itself. It is not a BFG or Git LFS-specific problem, or if there is a bug with those, it is if those tools accept and process those globs, but Git itself doesn't understand them, so the filters they add don't work. Git might say that it treats these types of matches as "shell glob pattern", but I think a lot of the wildcard-processing is hand-coded, see wildmatch.c in the Git source. To improve completeness between what common shell globs support (with or without Here's a test.
The demostrates that whilst |
To be clear, the BFG documentation for the
|
…wild-carded forms that are supported by BFG but not by git/git-lfs. See rtyley#143. This may also relate to how BFG combines the cleaning-routine and LFS-externalization with the creation of .gitattributes files, ref rtyley#116.
bfg --convert-to-git-lfs '*.{zip,mp4}'
adds below to.gitattributes
.But git command cannot treat this pattern as we expect.
Suggest: If It is hard to separate grouped pattern, How abount enabling to specify
--convert-to-git-lfs
option multiple times and take only one pattern?I'v checked on following environment:
The text was updated successfully, but these errors were encountered: