mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-03 11:21:01 +01:00
Correctly handle unset generated paths
This commit is contained in:
parent
83f5452d53
commit
df8d0a578b
1 changed files with 3 additions and 2 deletions
|
@ -369,8 +369,9 @@ final class DifferentialChangesetParser {
|
|||
$generated_guess = (strpos($new_corpus_block, '@'.'generated') !== false);
|
||||
|
||||
if (!$generated_guess) {
|
||||
$config_key = 'differential.generated-paths';
|
||||
$generated_path_regexps = PhabricatorEnv::getEnvConfig($config_key);
|
||||
$generated_path_regexps = PhabricatorEnv::getEnvConfig(
|
||||
'differential.generated-paths',
|
||||
array());
|
||||
foreach ($generated_path_regexps as $regexp) {
|
||||
if (preg_match($regexp, $this->changeset->getFilename())) {
|
||||
$generated_guess = true;
|
||||
|
|
Loading…
Reference in a new issue