Changeset b53b5234c94d…
Parent 283fe96bcb86…
by
Changes to one file · Browse files at b53b5234c94d Showing diff from parent 283fe96bcb86 Diff from another changeset...
@@ -161,7 +161,8 @@ files = []
repo = self.get_repo_for_path(cwd)
else:
- cwd = os.path.dirname(files[0])
+ f = files[0]
+ cwd = os.path.isdir(f) and f or os.path.dirname(f)
repo = self.get_repo_for_path(cwd)
if repo:
menus = self.menu.get_commands(repo, cwd, files)
|
Loading...