Skip to content

Commit

Permalink
Enhancement: allow open file on remote when opening file at commit
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Jul 18, 2017
1 parent 2e5bae0 commit 91d756d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion github/commands/open_on_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ def open_file_on_remote(self, remote):
if isinstance(fpath, str):
fpath = [fpath]
remote_url = self.remotes[remote]
commit_hash = self.get_commit_hash_for_head()

if self.view.settings().get("git_savvy.show_commit_view"):
# if it is a show_commit_view, get the hash from settings
commit_hash = self.view.settings().get("git_savvy.show_commit_view.commit")
else:
commit_hash = self.get_commit_hash_for_head()

start_line = None
end_line = None

Expand Down

0 comments on commit 91d756d

Please sign in to comment.