mercurial/commands.py
changeset 1081 8b7d63489db3
parent 1071 8f0ac653f85e
child 1085 6f94688b81b6
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -30,7 +30,7 @@ def relpath(repo, args):
     return args
 
 def matchpats(repo, cwd, pats=[], opts={}, head=''):
-    return util.matcher(repo, cwd, pats or ['.'], opts.get('include'),
+    return util.matcher(repo.root, cwd, pats or ['.'], opts.get('include'),
                         opts.get('exclude'), head)
 
 def makewalk(repo, pats, opts, head=''):