def using_git(cwd):
try:<EOL><INDENT>git_log = shell_out(["<STR_LIT>", "<STR_LIT>"], cwd=cwd)<EOL>return True<EOL><DEDENT>except (CalledProcessError, OSError):  <EOL><INDENT>return False<EOL><DEDENT>
Test whether the directory cwd is contained in a git repository.