Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed smart Git host detection #1766

Closed
wants to merge 1 commit into from

Conversation

nwinkler
Copy link
Contributor

@nwinkler nwinkler commented Apr 1, 2015

Only check the first Content-Type returned by the server. Some hosts are
returning text/plain in the first response, and then the correct content
type in later responses. This seems to be the case for GitHub
Enterprise. By checking the first content type entry, we should be able
to verify this.

Also added unit tests to test this behavior.

This should hopefully fix #1764 for most people.

Only check the first Content-Type returned by the server. Some hosts are
returning text/plain in the first response, and then the correct content
type in later responses. This seems to be the case for GitHub
Enterprise. By checking the first content type entry, we should be able
to verify this.

Also added unit tests to test this behavior.
@sheerun
Copy link
Contributor

sheerun commented Apr 1, 2015

@anwalkers Could you confirm it fixes your issue?

@samccone
Copy link
Member

samccone commented Apr 1, 2015

👍 this is great @nwinkler really amazing work

@nwinkler
Copy link
Contributor Author

nwinkler commented Apr 2, 2015

Please don't merge this yet - I'm not certain at all whether this is a good fix for the problem. We've already seen that it doesn't work for some people.

Essentially, it looks like the smart Git protocol support is not related to support for shallow cloning.

At the moment, I don't know whether we're evaluating the wrong thing, or whether we're dealing with a bug on GitHub Enterprise. I'm doing some more research now (and I'm going to contact GitHub Enterprise support).

@nwinkler nwinkler closed this Apr 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Installing bower dependencies by URL from Github Enterprise stopped working after upgrade to 1.4.1
3 participants