install: Move unset_git_user into separate function