Laravel4 Composer 更新失败 [英] Laravel4 Composer update failing
本文介绍了Laravel4 Composer 更新失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个 Laravel 4 项目.当我尝试使用 Composer 更新我的包时,它进入了学说/集合,但随后抛出了这个错误:
I'm working on a Laravel 4 project. When I try to update my packages with Composer, it gets to doctrine/collections but then throws this error:
[Runtime Exception]
Failed to execute git status --porcelain --untracked-files=no
error: bad index file sha1 signature
fatal: index file corrupt
异常跟踪:http://pastebin.com/Js3nKrhy
我尝试删除学说/集合中的索引,但它告诉我 refs/remotes/origin/master 中的格式不正确.
I tried removing the index in doctrine/collections but then I it tells me the format is incorrect in refs/remotes/origin/master.
知道如何解决这个问题吗?谢谢.
Any idea how to solve this issue? Thank you.
推荐答案
您可以通过删除索引来解决此问题(如果您愿意,请在之前进行备份):
You can probably fix this by removing the index (make a backup before, if you like):
$ rm -f .git/index
然后,恢复你的索引:
$ git reset
这篇关于Laravel4 Composer 更新失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文