Fix testing for origin

The previous code path was untested and not working
This commit is contained in:
Dirk Müller 2024-05-17 20:06:25 +02:00
parent b9670821a9
commit 0414b33206
No known key found for this signature in database

View File

@ -267,7 +267,10 @@ class Git:
)
def push(self, force=False):
if "origin" not in self.git_run(["remote"]).stdout:
if "origin" not in self.git_run(
["remote"],
stdout=subprocess.PIPE,
).stdout.decode("utf-8"):
logger.warning("Not pushing to remote because no 'origin' configured")
return