##// END OF EJS Templates
small globprefix fix
Alexis S. L. Carvalho -
r4183:6f947404 default
parent child Browse files
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(os.sep):
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