diff --git a/src/ModmanGenerator/Vcs/Git.php b/src/ModmanGenerator/Vcs/Git.php index 6c25a0a..d3133d3 100644 --- a/src/ModmanGenerator/Vcs/Git.php +++ b/src/ModmanGenerator/Vcs/Git.php @@ -19,7 +19,7 @@ public function getFilesInVcs(array $ignoreFiles = array(), $asPlainText = false { $gitRoot = $this->getRoot() . '/.git'; $ignoreFiles = implode('|', $ignoreFiles); - $files = `git --git-dir=$gitRoot ls-files | grep -vE "($ignoreFiles)"`; + $files = `git --git-dir="$gitRoot" ls-files | grep -vE "($ignoreFiles)"`; return $asPlainText ? $files : explode(PHP_EOL, $files); }