From 0414b33206aadb867b2b2d6d917c633a151343bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 17 May 2024 20:06:25 +0200 Subject: [PATCH] Fix testing for origin The previous code path was untested and not working --- lib/git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/git.py b/lib/git.py index 0880e5d..a5ef56c 100644 --- a/lib/git.py +++ b/lib/git.py @@ -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