use module.get_bin_path('git', True) once and pass git_path to functions
Merge pull request #3069 from benjixx/consistently-get-bin-path-for-git

consistently use module.get_bin_path('git', True) to get git path before...