Allow for setting of an initial git config when creating pkg repos

Makes `test/pkg.jl` work even when there is no `~/.gitconfig` and the username can't be guessed off of `/etc/passwd` comments.

ref #7789