diff --git a/src/main/php/Arbit/VCSWrapper/GitCli/Resource.php b/src/main/php/Arbit/VCSWrapper/GitCli/Resource.php index 79241ae..fd2f784 100644 --- a/src/main/php/Arbit/VCSWrapper/GitCli/Resource.php +++ b/src/main/php/Arbit/VCSWrapper/GitCli/Resource.php @@ -267,10 +267,6 @@ public function getLogEntry($version) */ public function getDiff($version, $current = null) { - if (!in_array($version, $this->getVersions(), true)) { - throw new \UnexpectedValueException("Invalid log entry $version for {$this->path}."); - } - $current = ($current === null) ? $this->getVersionString() : $current; if (($diff = \Arbit\VCSWrapper\Cache\Manager::get($this->path, $version, 'diff')) === false) {