/**
  * Runs Git command in the test repo and returns the exit code.
  *
  * @param string $cmd
  * @return int Exit code
  */
 public static function runGitCommand($cmd)
 {
     $process = new Process($cmd, self::$repositoryDir);
     $process->run();
     return $process->getExitCode();
 }