Authenticating with a password with git over http works again. More information here.
Avoid an exception later in function snapshot.