sublime-text-2-github-tools icon indicating copy to clipboard operation
sublime-text-2-github-tools copied to clipboard

[Bug] Incorrect paths open

Open Kristinita opened this issue 8 years ago • 0 comments

1. Summary

Incorrect links opened, if I press Ctrl+Shift+PGitHub: Open File and my file is not in root directory.

2. Expected behavior

https://github.com/Kristinita/Kristinita.github.io/blob/master/Sublime-Text/SashaSublime.html https://github.com/Kristinita/Kristinita.github.io/blob/master/Smert-svobode/%D0%9D%D0%BE%D0%B2%D1%8B%D0%B5-%D0%BD%D0%B5%D0%B4%D0%BE%D0%B2%D0%BE%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B5.html

3. Actual behavior

https://github.com/Kristinita/Kristinita.github.io/blob/master/SashaSublime.html https://github.com/Kristinita/Kristinita.github.io/blob/master/%D0%9D%D0%BE%D0%B2%D1%8B%D0%B5-%D0%BD%D0%B5%D0%B4%D0%BE%D0%B2%D0%BE%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B5.html

4. Steps to reproduce

The problem is reproduced for me in a version of Sublime Text without plugins and user settings.

I install GitHub Tools via Package Control → I restart Sublime Text → I open in Sublime Text file Sublime-Text\SashaSublime.html of my local git repository → Ctrl+Shift+PGitHub: Open File → incorrect link https://github.com/Kristinita/Kristinita.github.io/blob/master/SashaSublime.html open for me.

I open Smert-svobode\Новые-недовольные-русские.html file of my local git repository → Ctrl+Shift+PGitHub: Open File → incorrect link https://github.com/Kristinita/Kristinita.github.io/blob/master/%D0%9D%D0%BE%D0%B2%D1%8B%D0%B5-%D0%BD%D0%B5%D0%B4%D0%BE%D0%B2%D0%BE%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B5.html open for me.

But if I open SashaBlack.html file in root directory of my git repository → Ctrl+Shift+PGitHub: Open File → correct link https://github.com/Kristinita/Kristinita.github.io/blob/master/Sasha-Black.html open for me.

5. Examples in other apps

I have not this problem use sublime-github package. After installing Ctrl+Shift+PGitHub: Open Remote URL in Browser → all opened links correct for me.

6. Environment

Operating system and version: Windows 32-bit 10.0.14393 Sublime Text: Build 3126 git: git version 2.11.0.windows.1

Thanks.

Kristinita avatar Dec 27 '16 08:12 Kristinita