mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 22:38:42 +00:00
Throw exception if repository doesn't exist
This commit is contained in:
parent
1892f33f68
commit
1c5f0026de
|
|
@ -689,7 +689,11 @@ class Repository
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$fh = fopen($this->getDirectoryPath() . ($this->bare ? '/' : '/../') . $line, 'r');
|
$fh = fopen($path = $this->getDirectoryPath() . ($this->bare ? '/' : '/../') . $line, 'r');
|
||||||
|
|
||||||
|
if(!$fh) {
|
||||||
|
throw new PathException($path);
|
||||||
|
}
|
||||||
|
|
||||||
while (!feof($fh)) {
|
while (!feof($fh)) {
|
||||||
fgets($fh);
|
fgets($fh);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user