소스 검색

Don't update local checkout directory if url is pointing to it. Only update the checkout directory if it is controlled by composer.

kthbit 7 년 전
부모
커밋
1a30e3fbc1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Composer/Repository/Vcs/FossilDriver.php

+ 2 - 2
src/Composer/Repository/Vcs/FossilDriver.php

@@ -48,9 +48,9 @@ class FossilDriver extends VcsDriver
             $localName = preg_replace('{[^a-z0-9]}i', '-', $this->url);
             $this->repoFile = $this->config->get('cache-repo-dir') . '/' . $localName . '.fossil';
             $this->checkoutDir = $this->config->get('cache-vcs-dir') . '/' . $localName . '/';
-        }
 
-        $this->updateLocalRepo();
+            $this->updateLocalRepo();
+        }
 
         $this->getTags();
         $this->getBranches();