Open fimdomeio opened 1 year ago
The “success” bit is determined as “did run any commands”, in the case of git it the “git pull” command. I think this is correct (it did run, it did succeed), pyinfra is thinking on the command level rather than git itself.
We could, I think, use git fetch to pre-check for changes and only pull if so which would resolve this, though I’m not sure in reality if this is a problem?
Describe the bug
When pulling from a git repository it outputs the Success state in situations where it should output No Changes
debug output:
To Reproduce
pull from a repo.
I'm running this operation:
operating system is a Ubuntu Virtual Machine (Ubuntu 23.04)
Expected behavior
I expect "No changes" as a Status
Meta
pyinfra --support
installed with pipx