From df8d0a578bbdc14c9e89cb97206878b53bef51fc Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 16 Jan 2013 16:57:09 -0800 Subject: [PATCH] Correctly handle unset generated paths --- .../differential/parser/DifferentialChangesetParser.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/applications/differential/parser/DifferentialChangesetParser.php b/src/applications/differential/parser/DifferentialChangesetParser.php index 121ecdcbfa..cd970e9cd3 100644 --- a/src/applications/differential/parser/DifferentialChangesetParser.php +++ b/src/applications/differential/parser/DifferentialChangesetParser.php @@ -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;