(args)
| 57 | |
| 58 | def EnsureGit(v8_path): |
| 59 | def git(args): |
| 60 | # shell=True needed on Windows to resolve git.bat. |
| 61 | return subprocess.check_output( |
| 62 | "git " + args, cwd=v8_path, shell=True).strip() |
| 63 | |
| 64 | expected_git_dir = os.path.join(v8_path, ".git") |
| 65 | actual_git_dir = git("rev-parse --absolute-git-dir") |