瀏覽代碼

Use script-safe git argument to check for modifications

Jordi Boggiano 13 年之前
父節點
當前提交
e060ead6c2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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');
         }