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
4 changes: 3 additions & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -2834,7 +2834,9 @@ def is_context_git_url(path: str) -> bool:
return True
# URL contains a ":" character, a hint of a valid URL
if r.scheme != "" and r.netloc == "" and r.path != "":
return True
# On Windows, this could be a drive letter, so we need to check the scheme
if not (os.name == "nt" and len(r.scheme) == 1):
return True
if r.scheme == "": # tweak path URL to get username from url parser
r = urllib.parse.urlparse("ssh://" + path)
if r.username is not None and r.username != "":
Expand Down