Authenticating with a password with git over http works again. More information here.
Because we are going to extract the rest of the script below into a function.