don't fail on repos with no tags
This commit is contained in:
@@ -51,7 +51,7 @@ def main():
|
|||||||
tree = ET.parse(args.metainfo)
|
tree = ET.parse(args.metainfo)
|
||||||
|
|
||||||
if args.nightly:
|
if args.nightly:
|
||||||
version = subprocess.check_output(["git", "describe", "--tags"]).decode().strip()
|
version = subprocess.check_output(["git", "describe", "--tags", "--always"]).decode().strip()
|
||||||
version = version[1:] # remove the initial "v"
|
version = version[1:] # remove the initial "v"
|
||||||
write_entry(
|
write_entry(
|
||||||
out=args.out,
|
out=args.out,
|
||||||
|
|||||||
Reference in New Issue
Block a user