Show More
@@ -462,7 +462,7 b' def _matcher(canonroot, cwd, names, inc,' | |||||
462 | def globprefix(pat): |
|
462 | def globprefix(pat): | |
463 | '''return the non-glob prefix of a path, e.g. foo/* -> foo''' |
|
463 | '''return the non-glob prefix of a path, e.g. foo/* -> foo''' | |
464 | root = [] |
|
464 | root = [] | |
465 |
for p in pat.split( |
|
465 | for p in pat.split('/'): | |
466 | if contains_glob(p): break |
|
466 | if contains_glob(p): break | |
467 | root.append(p) |
|
467 | root.append(p) | |
468 | return '/'.join(root) |
|
468 | return '/'.join(root) |
General Comments 0
You need to be logged in to leave comments.
Login now