From 7fc80355f94d67f946e57eff955aca658e33abd2 Mon Sep 17 00:00:00 2001 From: stdmnpkg Date: Thu, 19 Sep 2024 16:17:37 +0000 Subject: [PATCH] fix(acbs/utils.py): remove excessive \n in unknown commit hash --- acbs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acbs/utils.py b/acbs/utils.py index 1e397f7..0281a3e 100644 --- a/acbs/utils.py +++ b/acbs/utils.py @@ -182,7 +182,7 @@ def start_general_autobuild_metadata(env: Dict[str, str], script_location: str, logging.info(f".srcinfo.json is save to: {path}") def generate_metadata(task: ACBSPackageInfo) -> str: - tree_commit = 'unknown\n' + tree_commit = 'unknown' try: tree_commit = subprocess.check_output( ['git', 'describe', '--always', '--dirty'], cwd=task.script_location).decode('utf-8').strip()