Refactor git helper method to take options hash
Remove misleading rescue block