diff --git a/fml/getversion.py b/fml/getversion.py index e15ca64fe..a06eb55ae 100644 --- a/fml/getversion.py +++ b/fml/getversion.py @@ -52,6 +52,7 @@ def main(): try: process = subprocess.Popen(cmdsplit(cmd), stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=-1) branch, _ = process.communicate() + branch = branch.strip() except OSError: print("Git not found") branch="master"