diff --git a/svut/svutRun.py b/svut/svutRun.py index 90d7b9d..a9a7ec6 100755 --- a/svut/svutRun.py +++ b/svut/svutRun.py @@ -30,6 +30,7 @@ import argparse import filecmp import subprocess +import shutil import datetime from timeit import default_timer as timer from datetime import timedelta @@ -308,6 +309,11 @@ def get_git_tag(): Return current SVUT version """ + # Handles an environment without Git installed + git_path = shutil.which("git") + if git_path is None: + return "" + curr_path = os.getcwd() os.chdir(SCRIPTDIR)