Skip to content

Commit

Permalink
Use the right CWD.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Sep 17, 2024
1 parent 0596b28 commit e625776
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,18 +492,7 @@ def bootstrap_python_installer(dest):
# type: (str) -> None
for index in range(3):
try:
subprocess.check_call(
args=[
"git",
"clone",
"https://github.com/pyenv/pyenv",
"-o",
"origin",
"-b",
"master",
dest,
]
)
subprocess.check_call(args=["git", "clone", "https://github.com/pyenv/pyenv", dest])
return
except subprocess.CalledProcessError as e:
print("Error cloning pyenv on attempt", index + 1, "of 3:", e, file=sys.stderr)
Expand Down Expand Up @@ -555,7 +544,7 @@ def ensure_python_distribution(version):
with atomic_directory(target_dir=interpreter_location) as interpreter_target_dir:
if not interpreter_target_dir.is_finalized():
with pyenv_root_atomic_dir.locked():
subprocess.check_call(args=["git", "pull", "--ff-only", "origin", "master:master"])
subprocess.check_call(args=["git", "pull", "--ff-only"], cwd=pyenv_root)

env = pyenv_env.copy()
if sys.platform.lower().startswith("linux"):
Expand Down

0 comments on commit e625776

Please sign in to comment.