From e060ead6c254d56f91da50589652900c9db56b3b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 11 Nov 2011 12:01:38 +0100 Subject: [PATCH] Use script-safe git argument to check for modifications --- src/Composer/Downloader/GitDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index 0861737f4..ecd3a366c 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/src/Composer/Downloader/GitDownloader.php @@ -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'); }