diff --git a/reframe/utility/os.py b/reframe/utility/os.py index 53f9de1f67..69f2dc2ca6 100644 --- a/reframe/utility/os.py +++ b/reframe/utility/os.py @@ -227,7 +227,8 @@ def git_repo_exists(url, timeout=5): """Check if URL refers to git valid repository.""" try: os.environ['GIT_TERMINAL_PROMPT'] = '0' - run_command('git ls-remote %s' % url, check=True, timeout=timeout) + run_command('git ls-remote -h %s' % url, check=True, + timeout=timeout) except (SpawnedProcessTimeout, SpawnedProcessError): return False else: