docstr: Inject flags before sub-command in argv. 
docstr_tok: ["Inject","flags","before","sub-command","in","argv","."]
code: def run_cmd(self, cmd, *argv, git_dir=None, **kwargs):
      """Inject flags before sub-command in argv."""
      opts = []
      if git_dir is not None:
          opts.extend(["-C", _stringify_path(git_dir)])
  
      return self.run(*opts, cmd, *argv, **kwargs)
  
file_path: arrow/dev/archery/archery/utils/git.py
imports: from .command import Command, capture_stdout, default_bin
  from ..compat import _stringify_path
label_desc: Use image node_id 2 for calling the Git obj's underlying member method code with example usage: obj.run_cmd(cmd) and returns: self