git.install: clean up code & make it more readable