Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect UI while using a non-GitHub repo #164
I use this plugin for repos both on GitHub and our company's own Git repo.
When using the company repo, and I go to Synchronization, it gives me the following warning at the top: "You are not logged in to [server address], so certain git operations may fail. Login now"
The login now assumes I want to log into GitHub Enterprise, although I'm already logged in to my company's git server/repo. I can commit and everything to the company repo just fine.
So why is this message claiming otherwise? Why is it trying to get me to log in to GitHub Enterprise for a non-GitHub URL/server?
It also shows the company git server repo listed under GitHub on the Home tab, and it shows a bunch of GitHub-specific functionality under the Project toggle, like Pulse and Graphs, even though it's not a GitHub repo.
changed the title from
Incorrect message about not being logged in
Incorrect UI while using a non-GitHub repo
Dec 14, 2015
Thanks for the report. It looks like the logic for determining whether the server is a GitHub server or not is getting a false positive on your server. It's hard to tell whether a remote with a non github.com url is an enterprise server or not, because when you're not logged in on an enterprise instance, the likely response to a GitHub API request is going to be similar to what you get when you try to call an API on a non-GitHub server.
The extra information you're seeing in the UI is calculated locally because it thinks the remote is an enterprise github instance. It is just for informational purposes (albeit incorrect in this case) and doesn't affect any git or other operations in Visual Studio, so you don't have to worry about that having any side effects other than showing (annoying) messages and extra buttons.
We'll get working on a fix for this and update the issue when it's out.
@OsirisTerje Actually... if you could do "curl -vv https://your-git-server/site/sha" on a command line and gist the result (or with a browser and Fiddler it), that would be great! Redact whatever you need, I just want to see the http status code and the headers it returns to you (the code right now is being overly naive, I need to be more specific about parsing responses)
It returns this: https://gist.github.com/OsirisTerje/48b62682d6df994276f2
This was referenced
Dec 18, 2015
A fix for this issue will be included in release 22.214.171.124, which will be out before Monday.