2013-01-18 2 views
3

작곡가를 사용하여 2.1.4에서 2.1.7로 Symfony 2 프로젝트를 업데이트하려고하는데 보통의 종속성을 업데이트 한 후에 php composer.phar update을 실행하면 다음 오류가 발생합니다.작곡가를 통해 업데이트 할 때 git 저장소 오류가 아님

[RuntimeException] 
Failed to clone http://github.com/fabpot/Twig-extensions via git, https 
and http protocols, aborting. 

- git://github.com/fabpot/Twig-extensions 
    fatal: Not a git repository (or any of the parent directories): .git 

- https://github.com/fabpot/Twig-extensions 
    fatal: Not a git repository (or any of the parent directories): .git 

- http://github.com/fabpot/Twig-extensions 
    fatal: Not a git repository (or any of the parent directories): .git 

URL을 확인한 결과 동일한 CLI에서 아무런 문제없이 URL이 존재 함을 확인 했으므로 git clone 수 있습니다.

만약 내가 php composer.phar update twig/extensions을 별도로 실행하면 문제가없는 것 같습니다.

답변

16

이것은 대개 git repos로 설치되었지만 git repos가 제거 된 상태로 제공되는 이전 심포니 복사본이있는 경우에 발생합니다. 이 문제를 해결하려면 공급 업체 디렉토리를 제거해야합니다. 그러면 처음부터 다시 git clones 또는 zip 아카이브로 다시 설치하지만 이전 가정은하지 않아도됩니다. hhvm 및 PHP 7

[RuntimeException] 
Failed to execute git checkout 'hash' -- && git reset --hard 'hash' -- 
fatal: Not a git repository (or any of the parent directories): .git 

오류가 항상 아니라 정기적으로 composer.json에 따라 나타납니다와 composer를 사용하는 동안 현재, 나는 비슷한 문제가 발생

+0

완벽하게 작동했습니다. 고맙습니다. –

0

참고. 내가 작동하게하려면 hhvm을 끄십시오.

관련 문제