(self)
| 678 | return bool(self.get_working_dir()) |
| 679 | |
| 680 | def get_working_dir(self): |
| 681 | if self._active_file_name(): |
| 682 | working_dir = super(UncommittedFilesCommand, self).get_working_dir() |
| 683 | if working_dir and get_vcs(working_dir): |
| 684 | return working_dir |
| 685 | |
| 686 | # If the user has opened a vcs folder, use it. |
| 687 | folders = self.window.folders() |
| 688 | for folder in folders: |
| 689 | if folder and os.path.exists(folder) and get_vcs(folder): |
| 690 | return folder |
| 691 | |
| 692 | def run(self): |
| 693 | self.vcs = get_vcs(self.get_working_dir()) |
no test coverage detected