Skip to content

fix http push 401 and 500 with some git clients

Matthias Käppler requested to merge github/fork/tsl0922/patch-grack-auth into master

Created by: tsl0922

This patch fix:

Some git clients(eclipse egit, some git version..) report http 401, rpc failed and don't ask user for username & password if server return true on GET /myrepo.git/info/refs?service=git-receive-pack but false on POST /myrepo.git/git-receive-pack. This cause git client do Counting objects first and then ask you for username & password or report http 401, rpc failed. It should ask for username & password first and then Counting objects ?

When push with eclipse egit on windows, Server may response with 500 error cause of invalid byte sequence in UTF-8 .

Merge request reports

Loading