[#82362380] add support for running other git versions
also rename helper methods to be more accurate