def git_path_valid(git_path=None):
if git_path is None and GIT_PATH is None:<EOL><INDENT>return False<EOL><DEDENT>if git_path is None: git_path = GIT_PATH<EOL>try:<EOL><INDENT>call([git_path, '<STR_LIT>'])<EOL>return True<EOL><DEDENT>except OSError:<EOL><INDENT>return False<EOL><DEDENT>
Check whether the git executable is found.