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/"
1 Reply
corporat
corporatOP3y ago
I'll show you the files in my setup .git/config
...
...
unrelated config
...
...
[include]
path = ../.gitconfig
...
...
unrelated config
...
...
[include]
path = ../.gitconfig
/.gitattributes
system.json filter=mungePackageID
system.json filter=mungePackageID
/.gitconfig
[filter "mungePackageID"]
required = true
smudge = 'sh "./scripts/smudgePackageID.sh"'
clean = 'sh "./scripts/cleanPackageID.sh"'
[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 --list shows 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
Want results from more Discord servers?
Add your server