소스 검색

Always reset stash change, refs #1254

Jordi Boggiano 12 년 전
부모
커밋
a7cc5f187f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Composer/Downloader/GitDownloader.php

+ 1 - 1
src/Composer/Downloader/GitDownloader.php

@@ -153,11 +153,11 @@ class GitDownloader extends VcsDownloader
     protected function reapplyChanges($path)
     {
         if ($this->hasStashedChanges) {
+            $this->hasStashedChanges = false;
             $this->io->write('    <info>Re-applying stashed changes');
             if (0 !== $this->process->execute('git stash pop', $output, $path)) {
                 throw new \RuntimeException("Failed to apply stashed changes:\n\n".$this->process->getErrorOutput());
             }
-            $this->hasStashedChanges = false;
         }
     }