From daa7b5edd46df701f3a69fababe94643537bd7ad Mon Sep 17 00:00:00 2001 From: Arksine Date: Thu, 20 May 2021 19:56:17 -0400 Subject: [PATCH] update_manager: allow the remote method to run a generic command Signed-off-by: Eric Callahan --- moonraker/components/update_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/components/update_manager.py b/moonraker/components/update_manager.py index 9758df0..3e9d385 100644 --- a/moonraker/components/update_manager.py +++ b/moonraker/components/update_manager.py @@ -973,7 +973,7 @@ class GitRepo: await self.fetch() await self.run_fsck() - self.upstream_url = await self.remote("get-url") + self.upstream_url = await self.remote(f"get-url {self.git_remote}") self.current_commit = await self.rev_parse("HEAD") self.upstream_commit = await self.rev_parse( f"{self.git_remote}/{self.git_branch}") @@ -1163,7 +1163,7 @@ class GitRepo: self._verify_repo(check_remote=True) async with self.git_operation_lock: resp = await self._run_git_cmd( - f"remote {command} {self.git_remote}") + f"remote {command}") return resp.strip() async def describe(self, args: str = "") -> str: