fixed bug that coused the checkout to fait because it was performed from a non-git repository

also removed unneed hibridon dependency (it's planned to make this bench code work for any git/cmake repository)
This commit is contained in:
Guillaume Raffy 2022-06-02 15:58:00 +02:00
parent 97a04d2831
commit ac639b3a08
1 changed files with 3 additions and 3 deletions

View File

@ -219,9 +219,9 @@ def measure_hibridon_perf(git_repos_url: str, code_version: str, tmp_dir: Path,
git_credentials.append(git_password)
if len(git_credentials) != 0:
git_repos_url = git_repos_url.replace('https://', 'https://%s@' % ':'.join(git_credentials))
src_dir = tmp_dir / 'hibridon'
src_dir.mkdir(exist_ok=True)
subprocess.run(['git', 'clone', '%s' % (git_repos_url)], cwd=src_dir, check=True)
src_dir = tmp_dir / 'source.git'
# src_dir.mkdir(exist_ok=True)
subprocess.run(['git', 'clone', '%s' % (git_repos_url), src_dir], cwd=tmp_dir, check=True)
if code_version:
subprocess.run(['git', 'checkout', '%s' % (code_version)], cwd=src_dir, check=True)