update_manager: handle rev-list on tagless repos
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
d75831f10a
commit
385b9a1b7a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue