117
118
tree_to = WorkingTree.open_containing(self.comm.get_path())[0]
118
119
branch_to = tree_to.branch
121
122
branch_to = Branch.open_containing(self.comm.get_path())[0]
123
124
self.dialog.error_dialog(_('Directory is not a branch'),
124
125
_('You can perform this action only in a branch.'))