Explorar o código

Use script-safe git argument to check for modifications

Jordi Boggiano %!s(int64=13) %!d(string=hai) anos
pai
achega
e060ead6c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Downloader/GitDownloader.php

+ 1 - 1
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');
         }