Closed bastelfreak closed 7 months ago
@bastelfreak , do you want us to do a 4.0.1 release with this change or do you want to wait a bit to see what else comes up?
@justinstoller Please make a 4.0.1 release (and if that could be vendored in PE 2023 that would be awesome).
Simplified, the code in the past was like this (data/roles/pe_primary.yaml is a random test file):
git diff-index -p HEAD data/roles/pe_primary.yaml
Which results in the following error if the file is tracked in git but was deleted locally:
With adding
--
to the command, we ensure it's interpreted as path. This changes the exit code to 0.