I'm trying to do something similar to what git-lfs does using filters.
Download .apk files from S3 on git checkout, but smudge filter is always failing on last file because of (apply_filter function i guess).
Configuration:
cat .gitattributes
*.apk filter=custom-lfs -diff -text
cat ~/.gitconfig
[filter "custom-lfs"]
smudge = custom-lfs %f
required = true
If the filter is required to succeed '(required = true)' git status report assertion error:
git.real: convert.c:1165: convert_to_git_filter_fd: Assertion `ca.drv->clean || ca.drv->process' failed.
If it's not required git status is showing 1 from 20 apks modified, always the one which is downloaded last.
S3 source apk and my local copy have the same checksum.
https://github.com/git/git/blob/v2.17.1/convert.c#L1165
Was thinking to try out with 2.18.