Laravel4 Composer更新失败 [英] Laravel4 Composer update failing

查看:133
本文介绍了Laravel4 Composer更新失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Laravel 4项目。
当我尝试使用Composer更新我的软件包时,会遇到doctrine / collections,但是会抛出这个错误:

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

我尝试删除doctrine / collections中的索引,但是它告诉我在refs /

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.

推荐答案

你可以通过删除索引来解决这个问题p>

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆