mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-24 15:18:40 +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;
|
||||
}
|
||||
|
||||
$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)) {
|
||||
fgets($fh);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user