invalidate stale commits for PRs too

This commit is contained in:
Christian Flothmann 2018-10-09 13:19:40 +02:00
parent df1dcee93d
commit aee63f5e4b
1 changed files with 1 additions and 2 deletions

View File

@ -104,8 +104,7 @@ foreach ($composerJsons as list($dir, $lockedPackages)) {
}
}
if (!$referencedCommits || (isset($_SERVER['TRAVIS_PULL_REQUEST']) && 'false' !== $_SERVER['TRAVIS_PULL_REQUEST'])) {
// cached commits cannot be stale for PRs
if (!$referencedCommits) {
return;
}