Skip to content
Open
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
7 changes: 7 additions & 0 deletions codecov_cli/helpers/versioning_systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def get_fallback_value(self, fallback_field: FallbackFieldEnum):

remotes = p.stdout.decode().strip().splitlines()

if not remotes:
return None

remote_name = "origin" if "origin" in remotes else remotes[0]

p = subprocess.run(
Expand All @@ -145,6 +148,10 @@ def get_fallback_value(self, fallback_field: FallbackFieldEnum):
return None

remotes = p.stdout.decode().strip().splitlines()

if not remotes:
return None

remote_name = "origin" if "origin" in remotes else remotes[0]
p = subprocess.run(
["git", "ls-remote", "--get-url", remote_name], capture_output=True
Expand Down
Loading