third_party/blink/tools/blinkpy/common/checkout/git.py
def find_executable_name(executive, platform):
        """Finds the git executable name which may be different on Windows.

        The Win port uses the depot_tools package, which contains a number
        of development tools, including Python and git. Instead of using a
        real git executable, depot_tools indirects via a batch file, called
        "git.bat". This batch file is used because it allows depot_tools to
        auto-update the real git executable, which is contained in a
        subdirectory.

        FIXME: This is a hack and should be resolved in a different way if
        possible.
        """
        if not platform or not platform.is_win():
            return 'git'
        try:
            executive.run_command(['git', 'help'])
            return 'git'
        except OSError:
            _log.debug('Using "git.bat" as git executable.')
            return 'git.bat'
Finds the git executable name which may be different on Windows.

        The Win port uses the depot_tools package, which contains a number
        of development tools, including Python and git. Instead of using a
        real git executable, depot_tools indirects via a batch file, called
        "git.bat". This batch file is used because it allows depot_tools to
        auto-update the real git executable, which is contained in a
        subdirectory.

        FIXME: This is a hack and should be resolved in a different way if
        possible.
        
Finds the git executable name which may be different on Windows.
The Win port uses the depot_tools package, which contains a number
of development tools, including Python and git. Instead of using a
real git executable, depot_tools indirects via a batch file, called
"git.bat". This batch file is used because it allows depot_tools to
auto-update the real git executable, which is contained in a
subdirectory.

This is a hack and should be resolved in a different way if
possible.
Finds the git executable name which may be different on Windows . The Win port uses the depot_tools package which contains a number of development tools including Python and git . Instead of using a real git executable depot_tools indirects via a batch file called " git . bat " . This batch file is used because it allows depot_tools to auto - update the real git executable which is contained in a subdirectory . This is a hack and should be resolved in a different way if possible .
def find_executable_name(executive, platform):
        if not platform or not platform.is_win():
            return 'git'
        try:
            executive.run_command(['git', 'help'])
            return 'git'
        except OSError:
            _log.debug('Using "git.bat" as git executable.')
            return 'git.bat'
def find_executable_name ( executive , platform ) : if not platform or not platform . is_win ( ) : return 'git' try : executive . run_command ( [ 'git' , 'help' ] ) return 'git' except OSError : _log . debug ( 'Using "git.bat" as git executable.' ) return 'git.bat'
Finds the git executable name which may be different on Windows.
Finds the git executable name which may be different on Windows .
"""Finds the git executable name which may be different on Windows.

        The Win port uses the depot_tools package, which contains a number
        of development tools, including Python and git. Instead of using a
        real git executable, depot_tools indirects via a batch file, called
        "git.bat". This batch file is used because it allows depot_tools to
        auto-update the real git executable, which is contained in a
        subdirectory.

        FIXME: This is a hack and should be resolved in a different way if
        possible.
        """
executive
platform