We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f618ff3 commit cdf553fCopy full SHA for cdf553f
podman_compose.py
@@ -2834,7 +2834,9 @@ def is_context_git_url(path: str) -> bool:
2834
return True
2835
# URL contains a ":" character, a hint of a valid URL
2836
if r.scheme != "" and r.netloc == "" and r.path != "":
2837
- return True
+ # On Windows, this could be a drive letter, so we need to check the scheme
2838
+ if not (os.name == "nt" and len(r.scheme) == 1):
2839
+ return True
2840
if r.scheme == "": # tweak path URL to get username from url parser
2841
r = urllib.parse.urlparse("ssh://" + path)
2842
if r.username is not None and r.username != "":
0 commit comments