code: func (c *command) Close() error {
  	if c.closed {
  		return nil
  	}
  
  	defer func() {
  		c.closed = true
  		_ = c.stderrCloser.Close()
  
  	}()
  
  	err := c.cmd.Wait()
  	if _, ok := err.(*os.PathError); ok {
  		return nil
  	}
  
  	// When a repository does not exist, the command exits with code 128.
  	if _, ok := err.(*exec.ExitError); ok {
  		return nil
  	}
  
  	return err
  }
docs: // Close waits for the command to exit.