From: Michael Wallner Date: Sun, 8 Mar 2015 19:54:31 +0000 (+0100) Subject: use ls-tree instead of ls-files X-Git-Tag: v2.0.0~11 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7df4dfa853fca28bd641d0c683e66c3e4717e9ce;p=pharext%2Fpharext use ls-tree instead of ls-files --- diff --git a/src/pharext/SourceDir/Git.php b/src/pharext/SourceDir/Git.php index a16b1e6..df52101 100644 --- a/src/pharext/SourceDir/Git.php +++ b/src/pharext/SourceDir/Git.php @@ -46,7 +46,7 @@ class Git implements \IteratorAggregate, SourceDir private function generateFiles() { $pwd = getcwd(); chdir($this->path); - if (($pipe = popen("git ls-files", "r"))) { + if (($pipe = popen("git ls-tree -r --name-only HEAD", "r"))) { while (!feof($pipe)) { if (strlen($file = trim(fgets($pipe)))) { if ($this->cmd->getArgs()->verbose) {