#NEWLINE# @ staticmethod #NEWLINE# def _is_git_repo( directory ) : #NEWLINE# #INDENT# with open ( os . devnull , 'w' ) as devnull : #NEWLINE# #INDENT# return ( os . path . isdir ( directory ) and ( not subprocess . call ( [ 'git' , 'status' ] , stdout = devnull , stderr = subprocess . STDOUT , cwd = os . path . abspath ( devnull ) ) ) )