您的位置:首页 > 编程语言 > PHP开发

composer update 报The .git directory is missing from XXX

2015-06-15 23:12 681 查看
symfony 进行composer update 时报

- Updating tranzvision/bmorgweixin-handler-bundle (1.0.0 => dev-k1.2.0 4c22624)
Failed: [RuntimeException]<span style="background-color: rgb(255, 0, 0);"> The .git directory is missing from</span> /srv/www/XXX/HandlerBundle, see https://getcomposer.org/commit-deps for more information
Executing command (/srv/www/XXX/Bundle): git log 4c226245d6e110e037452e858ce3743070adb5d6..4c226245d6e110e037452e858ce3743070adb5d6 --pretty=format:"%h - %an: %s"

[RuntimeException]
Failed to execute git log 4c226245d6e110e037452e858ce3743070adb5d6..4c226245d6e110e037452e858ce3743070adb5d6 --pretty=format:"%h - %an: %s"
fatal: Invalid revision range 4c226245d6e110e037452e858ce3743070adb5d6..4c226245d6e110e037452e858ce3743070adb5d6
解决办法:

1、删除出错的bundle

2、删除composer.lock

3、在重新composer update即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  symfony php