matteosister / GitElephant

An abstraction layer for git written in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught exception 'RuntimeException', command not found

lucaschen opened this issue · comments

I'm receiving this error when I'm trying to use GitElephant with PHP 5.6.10:

Fatal error: Uncaught exception 'RuntimeException' with message 'Exit code: 127 while executing: " show '-s' '--pretty=raw' '--no-color' '44f14ff'" with reason: sh: show: command not found

This is the code I'm using:

<?php
  require "vendor/autoload.php";

  use GitElephant\Repository;
  use GitElephant\Objects\Branch;
  use GitElephant\Objects\Commit;
  use GitElephant\Objects\Tag;

  $repo = new Repository('../myrepo/');

  $diff = $repo->getDiff($repo->getCommit('44f14ff'), $repo->getCommit('3948f38'));

  var_dump($diff);

Does this also occur if you change your code to $diff = $repo->getDiff('44f14ff', '3948f38');?
Which version are you using?

Closing because not reproductible. And, probably outdated. Feel free to open a new issue