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

Fix problem with submodules and detached HEAD #101

Closed allomov closed 2 years ago

allomov commented 8 years ago

Hey, @bgreenlee.

I've played around the code you pointed me out in https://github.com/bgreenlee/sublime-github/issues/100 and here is a possible solution for this issue. It worked for me and I will continue using it to find out any possible problems.

The idea is that you have default_remote option in your settings (this idea is taken from GitHubinator). Every time you can't figure out what is current remote and branch, you take remote from default_remote option and substitute branch name with sha hash to point to specific commit.

Kristinita commented 7 years ago

@bgreenlee , please, review this pull request.

Thanks.

bgreenlee commented 2 years ago

I am so sorry to do this to you, but if you're still interested in this patch, would you mind reapplying it to the current head and add some documentation (in GitHub.sublime-settings) on the new setting?

Also, I'm a bit confused...is this replacing the existing remote setting?

Feel free to reopen.

(Sorry for the years-late response. I haven't used Sublime Text in a long time and have been sadly neglecting this repo.)