#NEWLINE# def run_git_command( self , command , capture_output = True , use_shell = False , **kwargs ) : #NEWLINE# #INDENT# '\n        :type command: str\n        :type capture_output: bool\n        :type use_shell: bool\n        :rtype: str\n        ' #NEWLINE# ( stdout , stderr ) = run ( 'cd {} && git {}' . format ( self . source_root , command ) , capture_output = capture_output , use_shell = use_shell , ** kwargs ) #NEWLINE# if self : #NEWLINE# #INDENT# raise ValueError ( 'Failed to run git command at "{}". stderr={}' . format ( self . source_root , stderr ) ) #NEWLINE# #UNINDENT# return stdout