Authenticating with a password with git over http works again. More information here.
I added assert in commit 83123e30, I do not know why, it was not used.