bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
455 stars 98 forks source link

Wrong URL generated #59

Closed lyrixx closed 9 years ago

lyrixx commented 10 years ago
>(15)[~/dev/labs/se/vendor/symfony/symfony](form-tw %) pwd
/home/greg/dev/labs/se/vendor/symfony/symfony
>(15)[~/dev/labs/se/vendor/symfony/symfony](form-tw %) git remote -v
composer        git://github.com/symfony/symfony.git (fetch)
composer        git://github.com/symfony/symfony.git (push)
lyrixx  git@github.com:lyrixx/symfony.git (fetch)
lyrixx  git@github.com:lyrixx/symfony.git (push)
origin  git://github.com/symfony/symfony.git (fetch)
origin  git@github.com:symfony/symfony.git (push)
>(15)[~/dev/labs/se/vendor/symfony/symfony](form-tw %) git branch
  command-lazy-load
  config-dump
  crazy-debugger
* form-tw
  form-tw3
  master

I open the file licence, and I try to view it on github:

- https://github.com/lyrixx/symfony/blob/form-tw/LICENSE
+ https://github.com/lyrixx/symfony/blob/form-tw/symfony/LICENSE

So as you can see, there is /symfony is the url. It should not.

On some other project, I have /home/greg/dev/production/projecty_name ...

Thanks.

daniel-liuzzi commented 10 years ago

I'm experiencing the same issue in a private repo:

- https://github.com/user/repo/blob/master/source/README.md
+ https://github.com/user/repo/blob/master/README.md

source is the name of the folder containing my local repo, and shouldn't be there (gets a 404 Not Found). If I remove it from the URL, the page loads properly.

lyrixx commented 9 years ago

@bgreenlee Any news on that?

bgreenlee commented 9 years ago

Is this still an issue? I can't reproduce.

bgreenlee commented 9 years ago

ah, nevermind...figured out how to reproduce it...fix coming shortly