From 385b9a1b7a1b080283e286383c18db93616aeb01 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 7 Feb 2023 11:20:08 -0500 Subject: [PATCH] update_manager: handle rev-list on tagless repos Signed-off-by: Eric Callahan --- moonraker/components/update_manager/git_deploy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moonraker/components/update_manager/git_deploy.py b/moonraker/components/update_manager/git_deploy.py index fa5fbf1..3ee1f06 100644 --- a/moonraker/components/update_manager/git_deploy.py +++ b/moonraker/components/update_manager/git_deploy.py @@ -584,6 +584,8 @@ class GitRepo: commit = tag = "?" try: commit = await self.rev_list("--tags --max-count=1") + if not commit: + return "?", "?" tag = await self.describe(f"--tags {commit}") except Exception: pass