parameters: (self)
docstring: read chromium git branch
docstring_summary: read chromium git branch
docstring_tokens: read chromium git branch
function: def read_chromium_branch(self):
      """read chromium git branch"""
      command = ['git', 'rev-parse', '--abbrev-ref', 'HEAD']
  
      try:
        job = subprocess.Popen(command, cwd=self.chromium_src_path,
                               stdout=subprocess.PIPE)
        job.wait()
        return job.stdout.read().strip()
      except Exception:
        return None
function_tokens: def read_chromium_branch ( self ) : command = [ 'git' , 'rev-parse' , '--abbrev-ref' , 'HEAD' ] try : job = subprocess . Popen ( command , cwd = self . chromium_src_path , stdout = subprocess . PIPE ) job . wait ( ) return job . stdout . read ( ) . strip ( ) except Exception : return None