`git checkout` with commit hash

This commit is contained in:
brkirch 2023-08-12 04:44:16 -04:00
parent 2489252099
commit 9058620cec
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ def git_clone(url, dir, name, commithash=None):
run_git(dir, name, 'fetch', f"Fetching updates for {name}...", f"Couldn't fetch {name}", autofix=False)
run_git(dir, name, 'checkout', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True)
run_git(dir, name, f'checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True)
return