Configure user information for temporary repos during testing

This is needed to avoid errors when doing 'git commit' during unit tests, since
this needs to read user.name and user.email config values. Git reports an error
if they are set neither globally nor on the repo.