Skip to content
Snippets Groups Projects
Commit b85f7cc1 authored by Patrick Mezard's avatar Patrick Mezard
Browse files

convert: avoid interpreting Windows path as CVS connection strings.

CVS connection strings regexp detect colons to separate protocols from path and login. Unfortunately, Windows paths contains colons and were interpreted as rsh connection strings.
parent a76c6167
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,8 @@
if root.startswith(":ext:"):
root = root[5:]
m = re.match(r'(?:([^@:/]+)@)?([^:/]+):?(.*)', root)
if not m:
# Do not take Windows path "c:\foo\bar" for a connection strings
if os.path.isdir(root) or not m:
conntype = "local"
else:
conntype = "rsh"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment