Fix logic for creating temporary repos in tests

* Configure user information
* Use git/throw-if-error to confirm success, rather than search in stdout