On Wed, Jan 26, 2011 at 18:00, David Borowitz [off-list ref] wrote:
But this raises further questions:
-Why does git/curl decide it's ok to retry with authentication in one
case, but not in the other?
Poking further, it looks like curl is deciding not to retry because
the ioctl callback is failing to rewind the post buffer when clearly
it should be able to. So it's more likely a git bug than a curl issue
(the following question notwithstanding).
-Why does curl send the auth header before ever receiving a 401, while
git does not? (Would fixing this be as easy as setting another curl
option?)