Skip to content

Commit

Permalink
Merge pull request #3 from spofa/master
Browse files Browse the repository at this point in the history
fix git-dir under certain os such as the windows
  • Loading branch information
andkirby authored Jun 21, 2016
2 parents 0b8b540 + c30ba57 commit ade6eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ModmanGenerator/Vcs/Git.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ade6eaa

Please sign in to comment.