Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions github_scripts/get_git_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def sync_repo(repo_source: str, repo_ref: str, loc: Path) -> None:
# Ignore errors - these are likely because the main branch already exists
# Instead write them as warnings
command = f"git -C {loc} fetch origin main:main"
result = run_command(command, check=False, rval=True)
if result.returncode:
result = run_command(command, check=False)
if result and result.returncode:
print("Warning - fetching main from origin resulted in an error")
print("This is likely due to the main branch already existing")
print(f"Error message:\n\n{result.stderr}")
Expand Down