1
0
Fork 0
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:
vrana 2013-01-16 16:57:09 -08:00
parent 83f5452d53
commit df8d0a578b

View file

@ -369,8 +369,9 @@ final class DifferentialChangesetParser {
$generated_guess = (strpos($new_corpus_block, '@'.'generated') !== false); $generated_guess = (strpos($new_corpus_block, '@'.'generated') !== false);
if (!$generated_guess) { if (!$generated_guess) {
$config_key = 'differential.generated-paths'; $generated_path_regexps = PhabricatorEnv::getEnvConfig(
$generated_path_regexps = PhabricatorEnv::getEnvConfig($config_key); 'differential.generated-paths',
array());
foreach ($generated_path_regexps as $regexp) { foreach ($generated_path_regexps as $regexp) {
if (preg_match($regexp, $this->changeset->getFilename())) { if (preg_match($regexp, $this->changeset->getFilename())) {
$generated_guess = true; $generated_guess = true;