Skip to content

Commit dcbb787

Browse files
Fix export (#165)
* fix script * fix script * fix script * Update github_scripts/get_git_sources.py Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com> --------- Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com>
1 parent ab773fd commit dcbb787

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github_scripts/get_git_sources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ def sync_repo(repo_source: str, repo_ref: str, loc: Path) -> None:
165165
# Ignore errors - these are likely because the main branch already exists
166166
# Instead write them as warnings
167167
command = f"git -C {loc} fetch origin main:main"
168-
result = run_command(command, check=False, rval=True)
169-
if result.returncode:
168+
result = run_command(command, check=False)
169+
if result and result.returncode:
170170
print("Warning - fetching main from origin resulted in an error")
171171
print("This is likely due to the main branch already existing")
172172
print(f"Error message:\n\n{result.stderr}")

0 commit comments

Comments
 (0)