code: func (r *Repo) gitCmd(params []string, dir string) error {
  	// if key is specified, use ssh key
  	if r.KeyPath != "" {
  		return r.gitCmdWithKey(params, dir)
  	}
  	return runCmd(gitBinary, params, dir)
  }
docs: // gitCmd performs a git command.