Git error: unpack failed: error Missing tree 解决办法

在使用git提交代码的时候遇到以下错误:

Counting objects: 1, done. Writing objects: 100% (1/1), 239 bytes | 0 bytes/s, done. Total 1 (delta 0), reused 0 (delta 0) error: unpack failed: error Missing tree f91cf0165fdad7d7adf5ea71b7be37aa140ebc22 fatal: Unpack error, check server log To ssh://[email protected]:29418/edaijia_customer_ios.git ! [remote rejected] submit –> refs/for/develop (n/a (unpacker error)) error: failed to push some refs to ‘ssh://[email protected]:29418/edaijia_customer_ios.git’

发现此问题是gerrit的一个bug,git使用的版本过高的原因,将git的版本降为1.8,问题就没了。

你可能感兴趣的:(android,server,git)