Refactor git pull

Simple refactoring of `git pull`.

@devoncarew PTAL thanks.