diff --git a/devices/util/lofar_git.py b/devices/util/lofar_git.py
index 03b6873760bc39f96503f43f0a7d0e4e595a5c60..e95f6bdf369e9f21bfb89f0d3359a1328157d0a3 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