X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/f1d6f647c38d0ebf78f812bf551e0ab2b4f48a70..d63a7b14a6e1140fe5aa0610b1490f69b3494623:/src/phorkie/ForkRemote.php diff --git a/src/phorkie/ForkRemote.php b/src/phorkie/ForkRemote.php index 78c3caa..7f6129d 100644 --- a/src/phorkie/ForkRemote.php +++ b/src/phorkie/ForkRemote.php @@ -3,6 +3,11 @@ namespace phorkie; class ForkRemote { + /** + * Contains error message when parse() failed + */ + public $error; + protected $url; /** @@ -90,7 +95,12 @@ class ForkRemote } } - return $count > 0; + if ($count > 0) { + return true; + } + + $this->error = 'No git:// clone URL found'; + return false; } /**