Client
Client copied to clipboard
[11.15] Repository branch and file check existence methods
Hello, take a look please
try {
$this->head($uri, []);
return true;
} catch (Gitlab\Exception\RuntimeException $ex) {
if (404 === $ex->getCode()) {
return false;
}
throw $ex;
}
@GrahamCampbell can I use such a code to handle exception and check entity existence?