From 7e9f57eba5ec620bf5a20ec980c9d070ee4b8980 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Wed, 19 May 2021 16:02:45 +0200 Subject: [PATCH] L2SS-176: Fix syntax error and comment --- devices/util/lofar_git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/util/lofar_git.py b/devices/util/lofar_git.py index 03b687376..e95f6bdf3 100644 --- a/devices/util/lofar_git.py +++ b/devices/util/lofar_git.py @@ -40,7 +40,7 @@ def get_version(repo: git.Repo = None) -> str: The version string is one of: - <tag> - - <branch> <commit> + - <branch> [<commit>] In both cases, a "*" prefix indicates this code is not production ready. Code is considered production ready if it is a tag and there are no local modifications. @@ -64,7 +64,7 @@ def get_version(repo: git.Repo = None) -> str: if repo.is_dirty(): production_ready = False - return "{}{}{}".format("*" if not production_ready else "", commit_str) + return "{}{}".format("*" if not production_ready else "", commit_str) # at least cache the current repo version immediately -- GitLab