Skip to content

Commit 32e71cf

Browse files
gkorlandCopilot
andcommitted
Update e2e/seed_test_data.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent aaa9e59 commit 32e71cf

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

e2e/seed_test_data.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,21 @@ def fresh_clone_repository(url: str, path: Path) -> Path:
4343
shutil.rmtree(path)
4444

4545
path.parent.mkdir(parents=True, exist_ok=True)
46-
subprocess.run(
47-
["git", "clone", "--depth", "1", url, str(path)],
48-
check=True,
49-
capture_output=True,
50-
text=True,
51-
)
46+
try:
47+
subprocess.run(
48+
["git", "clone", "--depth", "1", url, str(path)],
49+
check=True,
50+
capture_output=True,
51+
text=True,
52+
)
53+
except subprocess.CalledProcessError as e:
54+
logger.error(
55+
"git clone failed for %s (return code %s). Stderr:\n%s",
56+
url,
57+
e.returncode,
58+
e.stderr or "<no stderr captured>",
59+
)
60+
raise
5261

5362
return path
5463

0 commit comments

Comments
 (0)