Skip to content

Commit 9165ebf

Browse files
Update github_scripts/get_git_sources.py
Co-authored-by: Sam Clarke-Green <74185251+t00sa@users.noreply.github.com>
1 parent 6a1bf53 commit 9165ebf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github_scripts/get_git_sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def clone_repo_mirror(
6969

7070
# If the ref is a hash then we don't need the fork user as part of the fetch.
7171
# Equally, if the user is the Upstream User, it's not needed
72-
if re.match(r"^\s*([0-9a-f]{40})\s*$", repo_ref) or not user:
72+
if not user or re.match(r"^\s*([0-9a-f]{40})\s*$", repo_ref):
7373
fetch = repo_ref
7474
else:
7575
fetch = f"{user}/{repo_ref}"

0 commit comments

Comments
 (0)