Php Symfony2+;DoctrineFixtureHandle:。找不到git/info/refs

Php Symfony2+;DoctrineFixtureHandle:。找不到git/info/refs,php,symfony,bundle,Php,Symfony,Bundle,更新当前symfony 2版本(从2.0.12到2.0.15)时,出现了一个致命错误 这里是错误: > Installing/Updating doctrine-fixtures HEAD is now at bed8908 Update README.md > Installing/Updating DoctrineFixturesBundle fatal: https://github.com/symfony/DoctrineFixturesBundle.git/info/re

更新当前symfony 2版本(从2.0.12到2.0.15)时,出现了一个致命错误

这里是错误

> Installing/Updating doctrine-fixtures
HEAD is now at bed8908 Update README.md

> Installing/Updating DoctrineFixturesBundle
fatal: https://github.com/symfony/DoctrineFixturesBundle.git/info/refs not found: did you run git update-server-info on the server?
PS:我已经完成了git update server info命令。但没什么

这里是我的deps文件

[doctrine-fixtures]
    git=http://github.com/doctrine/data-fixtures.git    

[DoctrineFixturesBundle]
    git=http://github.com/doctrine/DoctrineFixturesBundle.git
    target=bundles/Symfony/Bundle/DoctrineFixturesBundle
    version=origin/2.0
doctrine-fixtures bed8908ae929562317e5c59dc0bee24f3b63067e
和我的deps.lock文件

[doctrine-fixtures]
    git=http://github.com/doctrine/data-fixtures.git    

[DoctrineFixturesBundle]
    git=http://github.com/doctrine/DoctrineFixturesBundle.git
    target=bundles/Symfony/Bundle/DoctrineFixturesBundle
    version=origin/2.0
doctrine-fixtures bed8908ae929562317e5c59dc0bee24f3b63067e

我今天也注意到了同样的事情

需要注意的关键是,该问题与(注释/符号和非/学说)有关

如果您选中2.0分支,您将看到他们已将其更改为指向正确的存储库

我不得不从我的供应商目录中删除
bundles/Symfony/Bundle/DoctrineFixturesBundle
,然后重新运行
php-bin/vendors-install


我现在可以运行bin/vendors install,而不会抛出致命错误。

我找到了解决方案:

  • 感谢前面的回答,将doctrineFixtureBundle删除到您的存储库中
  • 其次,运行
    php bin/vendors重新安装
重新安装供应商的命令将对我的情况产生影响…

您必须更新您的deps文件

更改:

[DoctrineFixturesBundle]
    git=http://github.com/symfony/DoctrineFixturesBundle.git
    target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
进入:

然后,运行:

bin/vendors install

它应该只安装缺少的捆绑包。

尝试运行。/bin/vendors install--重新安装