Skip to content

Commit

Permalink
fix(acbs/utils.py): remove excessive \n in unknown commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
stdmnpkg authored and MingcongBai committed Sep 20, 2024
1 parent 938eec8 commit 7fc8035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acbs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7fc8035

Please sign in to comment.