git pack has bad object at offset xxx: inflate returned -5

git clone 时出现错误,git 版本 git version 1.7.1,在git 版本(git version 1.7.11 )不存在此问题,这是git 的一个bug,升级git 后解决问题


 git clone xxx
Initialized empty Git repository in /data1/xxx.git/
remote: Counting objects: 2228, done.
remote: Compressing objects: 100% (1302/1302), done.
fatal: pack has bad object at offset 31989002: inflate returned -5
fatal: index-pack failed


According to zlib manual, the errors are defined as follow:

#define Z_OK            0
#define Z_STREAM_END    1
#define Z_NEED_DICT     2
#define Z_ERRNO        (-1)
#define Z_STREAM_ERROR (-2)
#define Z_DATA_ERROR   (-3)
#define Z_MEM_ERROR    (-4)
#define Z_BUF_ERROR    (-5)
#define Z_VERSION_ERROR (-6)


I forgot to accept this answer which I caught up on, now. It was a bug, I reported it to the git mailing list, they were quick to fix it, the fix was merged into upstream, and the bug has been fixed in git's releases for several months, now.
 –  UTF-8  Dec 1 '16 at 23:40 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值