From c6f150f6d50173b69d103eec6cf77483e3dda018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek?= Date: Wed, 10 Aug 2022 08:59:37 +0200 Subject: [PATCH] LAMINAR_REASON - make it oneline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Valíček --- repo_cloner/process_repository_dir.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/repo_cloner/process_repository_dir.py b/repo_cloner/process_repository_dir.py index 49a4963..2ce5388 100755 --- a/repo_cloner/process_repository_dir.py +++ b/repo_cloner/process_repository_dir.py @@ -44,12 +44,10 @@ def detector_executor(commit: DetectedCommit): reason = commit.abbrev if commit.is_branch: - reason += f" branch: {commit.branches}" + reason += f"/{commit.branches}" if commit.is_tag: reason += f" tags: {commit.tags}" - if commit.is_tag or commit.is_branch: - reason += "\n" - reason += commit.log + reason = f"[{reason}] " + commit.log.splitlines()[0] env = os.environ.copy() env['LAMINAR_REASON'] = reason