##// END OF EJS Templates
dispatch: check for None before closing repo...
Idan Kamara -
r14727:d4b9d3b9 stable
parent child Browse files
Show More
@@ -654,7 +654,7 b' def _dispatch(req):'
654 return runcommand(lui, repo, cmd, fullargs, ui, options, d,
654 return runcommand(lui, repo, cmd, fullargs, ui, options, d,
655 cmdpats, cmdoptions)
655 cmdpats, cmdoptions)
656 finally:
656 finally:
657 if repo != req.repo:
657 if repo and repo != req.repo:
658 repo.close()
658 repo.close()
659
659
660 def _runcommand(ui, options, cmd, cmdfunc):
660 def _runcommand(ui, options, cmd, cmdfunc):
General Comments 0
You need to be logged in to leave comments. Login now