Skip to content

[Bug] Incorrect paths open #33

@Kristinita

Description

@Kristinita

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions