dispatch: don't use request repo if we have --cwd

This commit is contained in:
Idan Kamara 2011-07-11 17:46:55 +03:00
parent 8b7c28a23b
commit 27bbf9363c

View File

@ -633,7 +633,7 @@ def _dispatch(req):
cmdpats = args[:]
if cmd not in commands.norepo.split():
# use the repo from the request only if we don't have -R
if not rpath:
if not rpath and not cwd:
repo = req.repo
if repo: