1
0
Fork 0

Use script-safe git argument to check for modifications

pull/110/head
Jordi Boggiano 2011-11-11 12:01:38 +01:00
parent e6c3929ea9
commit e060ead6c2
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class GitDownloader implements DownloaderInterface
private function enforceCleanDirectory($path)
{
exec(sprintf('cd %s && git status -s', $path), $output);
exec(sprintf('cd %s && git status --porcelain', $path), $output);
if (implode('', $output)) {
throw new \RuntimeException('Source directory has uncommitted changes');
}