minor #28340 [appveyor] minor CI fix (nicolas-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[appveyor] minor CI fix

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Should fix this message on appveyor:
`fatal: Not a valid object name HEAD^`

Commits
-------

a391331791 [appveyor] minor CI fix
This commit is contained in:
Nicolas Grekas 2018-09-03 11:34:13 +02:00
commit 3b687fd09d

View File

@ -14,7 +14,7 @@ $packages = array();
$flags = \PHP_VERSION_ID >= 50400 ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE : 0;
foreach ($dirs as $k => $dir) {
if (!system("git diff --name-only $mergeBase -- $dir", $exitStatus)) {
if (!system("git diff --name-only \"$mergeBase\" -- $dir", $exitStatus)) {
if ($exitStatus) {
exit($exitStatus);
}