Changeset 69f96fd0ba09…
Parent ab579ebbe205…
by
Changes to one file · Browse files at 69f96fd0ba09 Showing diff from parent ab579ebbe205 Diff from another changeset...
@@ -118,7 +118,12 @@ hbox.pack_start(combo, False, False, 2)
else:
self.diffpath, self.diffopts = tools[preferred]
- self.find_files(repo, pats, opts, model)
+ cwd = os.getcwd()
+ try:
+ os.chdir(repo.root)
+ self.find_files(repo, pats, opts, model)
+ finally:
+ os.chdir(cwd)
else:
Prompt(_('No visual diff tool'),
_('No visual diff tool has been configured'), None).run()
|
Loading...