Skip to content
Snippets Groups Projects
Commit 301d7626 authored by Steve Losh's avatar Steve Losh
Browse files

alias: back up and restore commands.norepo before checking for shell aliases

parent 6c98107f
No related branches found
No related tags found
No related merge requests found
......@@ -434,6 +434,7 @@
def _checkshellalias(ui, args):
cwd = os.getcwd()
norepo = commands.norepo
options = {}
args = fancyopts.fancyopts(args, commands.globalopts, options)
......@@ -453,6 +454,7 @@
try:
aliases, entry = cmdutil.findcmd(cmd, cmdtable, lui.config("ui", "strict"))
except error.UnknownCommand:
commands.norepo = norepo
os.chdir(cwd)
return
......@@ -463,6 +465,7 @@
d = lambda: fn(ui, *args[1:])
return lambda: runcommand(lui, None, cmd, args[:1], ui, options, d, [], {})
commands.norepo = norepo
os.chdir(cwd)
_loaded = set()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment