<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_repro(self):
 """Return a Repro instance for capturing a repro of the current workspace state. :return: a Repro instance, or None if no repro was requested. :rtype: `pants.bin.repro.Repro` """

    path = self.get_options().capture
    if path is None:
      return None
    buildroot = get_buildroot()
    # Ignore a couple of common cases. Note: If we support SCMs other than git in the future,
    # add their (top-level only) metadata dirs here if relevant.
    ignore = ['.git', os.path.relpath(self.get_options().pants_distdir, buildroot)]
    if self.get_options().ignore:
      ignore.extend(self.get_options().ignore)
    return Repro(path, buildroot, ignore)