git filter troubleshooting
I'm troubleshooting a new setup that my code contributors can benefit from. I'm using a .gitconfig file inside of the repository's root, not the .git/config file, and then I've used the command to make it part of the local git config. I don't know whether the relative path to my smudge and clean scripts begins with "../scripts/" or "./scripts/"
I'll show you the files in my setup
... ... unrelated config ... ... [include] path = ../.gitconfig
[filter "mungePackageID"] required = true smudge = 'sh "./scripts/smudgePackageID.sh"' clean = 'sh "./scripts/cleanPackageID.sh"'
I tested my scripts manually, they seem to work.
git config --listshows the filter rules as expected. This setup worked while everything was hiding in the .git directory
finally got it to tell me it can't find the script file by trying
git add . --renormalize