It seemed like it was mostly the wrong variables been looked at, making it so a git repository could not be created without a credential.