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即可