Authenticating with a password with git over http works again. More information here.
Remove intermediate variables `first_pos` and `last_pos`.