I can commit, but when I select push, I get the message:
Invalid Content-Type: text/plain (-1)
How do I determine where the problem is?
I can commit, but when I select push, I get the message:
Invalid Content-Type: text/plain (-1)
How do I determine where the problem is?
I have the same problem and already filed a bug report but honestly don't expect an answer.
The strange thing is: In our company absolutely nobody has any problems with any other tool on any other OS to access our GIT.
But only with Xcode 7.2 with get a constant error that says: "Invalid Content-Type: text/plain; charset=utf-8 (-1)"
Just tested with Xcode 7.3 beta (7D111g) and the problem remains the same.
The problem is the following:
The Git server is using the dumb http protocol, but apple only supports the new smart http protocol.
Here are instructions how the setup your server to use the new smart http protocol:
https://kupschke.net/2012/02/23/git-server-mit-apache-und-dem-git-smart-http-protokoll/
Here is a listing of the different methods to access your git with pros and cons:
http://brakkee.org/site/2011/08/06/git-server-setup-on-linux-using-smart-http/
Here is the official documentation about that topic:
https://git-scm.com/book/be/v2/Git-on-the-Server-Smart-HTTP
I really recommend to move your Git to the new smart http protocol.
The error here is on apples side: I never got the information from apple that it doesn't support dumb http and needs smart http. Nowhere in the official documentation and worst of all: Nowhere in the error message from Xcode. Just this cryptic text. But no info what the reason of that might be.