diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..9b4df3b --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/sublime_github.py b/sublime_github.py index b228fa7..ee4ac95 100644 --- a/sublime_github.py +++ b/sublime_github.py @@ -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