Skip to content

Commit

Permalink
always take the folder
Browse files Browse the repository at this point in the history
  • Loading branch information
braver committed Jul 11, 2016
1 parent 3079517 commit cbd676f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SublimeGitUp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ def is_enabled(self):
return True

def get_path(self):
if self.window.active_view():
return self.window.active_view().file_name()
elif self.window.folders():
if self.window.folders():
return self.window.folders()[0]
else:
sublime.status_message('No place to open GitUp to')
Expand Down

0 comments on commit cbd676f

Please sign in to comment.