mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
dispatch: don't use request repo if we have --cwd
This commit is contained in:
parent
8b7c28a23b
commit
27bbf9363c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user