Skip to content

Commit b6237ef

Browse files
committed
Always mute version detection stderr
1 parent 52cdaca commit b6237ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

workflow/rules/common.smk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def get_repo_version(base_dir: str, default: str, warn=False) -> str:
3030
try:
3131
last_tag_description = subprocess.check_output(
3232
f"git --git-dir={base_dir}/.git describe --always",
33-
shell=True
33+
shell=True,
34+
stderr=subprocess.DEVNULL
3435
).strip().decode("utf-8")
3536
if last_tag_description.startswith("v"):
3637
if last_tag_description[1:] == default:

0 commit comments

Comments
 (0)