Re: git https transport and wrong password
- From
Mikko Rapeli <mikko.rapeli@iki.fi>
- Date
- Apr 3, 2013, 09:43 UTC
- Message-ID
- <20130403094302.GY30514@lakka.kapsi.fi>
- In-Reply-To
- <20130402202054.GX30514@lakka.kapsi.fi>
Maybe my git installation was incomplete before when running from ~/bin since I was not able to set break points to http_request() and some debug code was not there until I ran git through bin-wrappers in the source tree.
I added some debug prints to http.c functions http_request() and handle_curl_result(), and now I see this chain of events:
http_request_reauth() http_request() GET ...info/refs?service=git-upload-pack HTTP/1.1 401 Authorization Required * Ignoring the response-body * Issue another request to this URL: '...' GET ...info/refs?service=git-upload-pack HTTP/1.1 401 Authorization Required handle_curl_result: res = 22, http_code = 401, user = ..., pass = (null) Password for '...': (enter valid password) GET ...info/refs?service=git-upload-pack HTTP/1.1 200 OK
So, for some reason the first GET request is issued twice and first 401 is ignored. I'll try to debug run_active_slot() next...
-Mikko