Closed farzher closed 9 years ago
Hi @farzher – this is hard for me to troubleshoot remotely. It looks like you're a developer, so if you don't mind poking around in the code, the relevant bit is here.
What it does is this:
git ls-remote --get-url
to get your remote repository location. For sublime-github, this is "git@github.com:bgreenlee/sublime-github.git".git rev-parse --show-toplevel
to get the filesystem path to your repository. For example, for my sublime-github repo on my laptop, this is "/Users/brad/Library/Application Support/Sublime Text 3/Packages/sublime-github"git rev-parse --abbrev-ref HEAD
to get the name of the branch you are on.So based on what I can see in your url, it seems like there's some mismatch between the path it gets to your repository by doing git rev-parse --show-toplevel
and the path that Sublime Text returns for the file you're on. You can see what Sublime Text is returning by just opening the console (ctrl-) and typing:
view.file_name()`
If you're uncomfortable making the fixes yourself and submitting a pull request, I can try to figure it out if you can give me the output for the various git and sublime commands I listed above. Feel free to email me directly if you don't want to post those here (my email is on my profile page)
Cool, sounds pretty straight forward. I'll check it out
It appears as though this bug is still occurring if the project in Sublime is running on a symlinked folder. Running git rev-parse --show-toplevel
gives me the literal path rather than the symlink'd path, so I presume that's causing my GitHub URL generation to be wrong? I've just installed the plugin and it appears to be on the latest version.
You're linking me to here
why is that an absolute path to my C drive?
The page is of course a 404![image](https://cloud.githubusercontent.com/assets/1005136/6875352/2f83a9cc-d494-11e4-8561-39482a44b96d.png)