git filter troubleshooting

Ccorporat9/20/2022
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/"
Ccorporat9/20/2022
I'll show you the files in my setup
Ccorporat9/20/2022
.git/config
...
...
unrelated config
...
...
[include]
    path = ../.gitconfig
Ccorporat9/20/2022
/.gitattributes
system.json filter=mungePackageID
Ccorporat9/20/2022
/.gitconfig
[filter "mungePackageID"]
    required = true
    smudge = 'sh "./scripts/smudgePackageID.sh"'
    clean = 'sh "./scripts/cleanPackageID.sh"'
Ccorporat9/20/2022
I tested my scripts manually, they seem to work. git config --list shows the filter rules as expected. This setup worked while everything was hiding in the .git directory
Ccorporat9/20/2022
finally got it to tell me it can't find the script file by trying git add . --renormalize