detect gitolite env vars and use them

Otherwise will produce weird and useless output.
(git pushed a commit, where git is not the user we care about)