mercurial/commands.py
changeset 30528 20a42325fdef
parent 30527 a8b17859684a
child 30533 1ee358c3ed26
--- a/mercurial/commands.py	Wed Aug 17 20:57:15 2016 -0700
+++ b/mercurial/commands.py	Wed Nov 23 00:03:11 2016 +0530
@@ -2630,7 +2630,7 @@
 
     def complete(path, acceptable):
         dirstate = repo.dirstate
-        spec = os.path.normpath(os.path.join(os.getcwd(), path))
+        spec = os.path.normpath(os.path.join(pycompat.getcwd(), path))
         rootdir = repo.root + os.sep
         if spec != repo.root and not spec.startswith(rootdir):
             return [], []