Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
2 changes: 2 additions & 0 deletions sublime_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ def done_toplevel(self, result):
self.toplevel_path = result.strip()
# get file path within repo
absolute_path = self.view.file_name()
# resolve symlinks and subst drives (windows) because git does this when getting toplevel_path
absolute_path = os.path.realpath(absolute_path)
# self.view.file_name() contains backslash on Windows instead of forwardslash
absolute_path = absolute_path.replace('\\', '/')
# we case-insensitive split because Windows
Expand Down