class_docstr: PyGit class represents a git repo within a weigit repo.
  
  Args:
      parent_path (pathlib.Path)
          Has to be the full path of the parent!
      gitignore (List)
          a list of files to be added to the .gitignore
      name (str)
          Name of the author of the git repo. Optionally used if it can't be determined from user's .gitconfig.
      email (str)
          email address of the author of the git repo
docstr: Set the name and email for the pygit repo collecting from the gitconfig.
  If not available in gitconfig, set the values from the passed arguments.
docstr_tok: ["Set","the","name","and","email","for","the","pygit","repo","collecting","from","the","gitconfig",".","If","not","available","in","gitconfig",",","set","the","values","from","the","passed","arguments","."]
code: def _set_author_config(
      self, name: str, email: str
  ) -> Tuple[str, str]:
      """Set the name and email for the pygit repo collecting from the gitconfig.
      If not available in gitconfig, set the values from the passed arguments.
      """
      gitconfig = Path("~/.gitconfig").expanduser()
      # parse the .gitconfig file for name and email
      try:
          set_name = subprocess.run(
              ["git", "config", "user.name"],
              capture_output=True,
              text=True,
          ).stdout.rstrip()
          set_email = subprocess.run(
              ["git", "config", "user.email"],
              capture_output=True,
              text=True,
          ).stdout.rstrip()
          if not set_name or not set_email:
              set_name = name
              set_email = email
      except BaseException:
          set_name = name
          set_email = email
      return set_name, set_email
  
file_path: fairscale/fairscale/experimental/wgit/pygit.py
imports: from pathlib import Path
  import subprocess
  import sys
  from typing import Dict, List, Tuple
  import pygit2
label_desc: Use image node_id 8 for calling the PyGit obj's underlying member method code with example usage: obj._set_author_config(name, email) and returns: set_name,  set_email