Skip to content

Commit 954caa7

Browse files
committed
Fix travis
1 parent f4d23ea commit 954caa7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
language: php
22

3-
sudo: false
3+
dist: xenial
44

5-
matrix:
5+
git:
6+
depth: 5
7+
8+
jobs:
69
include:
710
- php: 7.1
811
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
@@ -24,7 +27,6 @@ env:
2427

2528
before_install:
2629
- ([[ $TRAVIS_PHP_VERSION = nightly ]] && composer config platform.php 7.4.99 || true)
27-
- if [[ $TRAVIS_PHP_VERSION = nightly ]]; then export SYMFONY_PHPUNIT_VERSION=8.5; fi
2830
- composer validate
2931

3032
install:

src/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function shouldWriteFile(string $file, bool $overwrite): bool
6565
return true;
6666
}
6767

68-
exec('git status --short --ignored -- '.ProcessExecutor::escape($file).' 2>&1', $output, $status);
68+
exec('git status --short --ignored --untracked-files=all -- '.ProcessExecutor::escape($file).' 2>&1', $output, $status);
6969

7070
if (0 !== $status) {
7171
return (bool) $this->io && $this->io->askConfirmation(sprintf('Cannot determine the state of the "%s" file, overwrite anyway? [y/N] ', $file), false);

0 commit comments

Comments
 (0)