forked from adamm/git-importer
Fix testing for origin
The previous code path was untested and not working
This commit is contained in:
parent
b9670821a9
commit
0414b33206
@ -267,7 +267,10 @@ class Git:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def push(self, force=False):
|
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")
|
logger.warning("Not pushing to remote because no 'origin' configured")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user