clu@WASYGSHA01-1020 MINGW64 /d/ChuckLu/Git/Edenred/LISA_5.0.0.0 (local)
$ git push origin preaction:preaction
Counting objects: 3717, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1631/1631), done.
Writing objects: 100% (3717/3717), 779.13 KiB | 5.19 MiB/s, done.
Total 3717 (delta 3063), reused 2480 (delta 2019)
remote: Resolving deltas: 100% (3063/3063)
error: remote unpack failed: error Missing tree eb96e0534e08fe512113b25a99d783278e04e8b1
To http://172.31.212.149:8080/r/LISA/LISA_5.0.0.0.git
! [remote rejected] preaction -> preaction (n/a (unpacker error))
error: failed to push some refs to 'http://clu@172.31.212.149:8080/r/LISA/LISA_5.0.0.0.git'

clu@WASYGSHA01-1020 MINGW64 /d/ChuckLu/Git/Edenred/LISA_5.0.0.0 (local)
$ git show eb96e05
tree eb96e05

App_Browsers/
App_Code/
App_Data/
App_Themes/
CMSAdminControls/
CMSDesk/
CMSEdit/
CMSFormControls/
CMSHelp/
CMSInlineControls/
CMSMasterPages/
CMSMessages/
CMSModules/
CMSPages/
CMSResources/
CMSScripts/
CMSSiteManager/
CMSTemplates/
CMSWebParts/
Chile/
ClientBin/
ConstantFile/
Default.aspx
Default.aspx.cs
Global.asax
Holcim/
Images/
LISA.CMSWeb.50.wpp.targets
Nestle/
RESTService.svc
Remoting.config
SamSung/
Scripts/
Views/
clientaccesspolicy.xml
en-US/
favicon.ico
jQueryCarousel/
parameters.config
web.config
website.publishproj
wse3policy.config

clu@WASYGSHA01-1020 MINGW64 /d/ChuckLu/Git/Edenred/LISA_5.0.0.0 (local)
$ git push --no-thin origin preaction:preaction
Counting objects: 3717, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1631/1631), done.
Writing objects: 100% (3717/3717), 779.13 KiB | 4.99 MiB/s, done.
Total 3717 (delta 3063), reused 2480 (delta 2019)
remote: Resolving deltas: 100% (3063/3063)
error: remote unpack failed: error Missing tree eb96e0534e08fe512113b25a99d783278e04e8b1
To http://172.31.212.149:8080/r/LISA/LISA_5.0.0.0.git
! [remote rejected] preaction -> preaction (n/a (unpacker error))
error: failed to push some refs to 'http://clu@172.31.212.149:8080/r/LISA/LISA_5.0.0.0.git'

解决方案:

https://github.com/gitblit/gitblit/issues/704

https://github.com/gitblit/gitblit/issues/989

http://gitblit.com/faq.html

push failed for branch (n/a (unpacker error))

This is a bug in JGit (issue 408). TLDR: Newer git clients are optimized to send less data on the wire. JGit expects complete data to be sent, but there are scenarios where native git can optimize-out sending objects. By default, JGit requires everything sent be complete and referenceable.

If you experience this, the workaround is to temporarily disable the reachable check for the receive pack, push, and then re-enable the setting.

git.checkReferencedObjectsAreReachable = false

在GitBlit的服务端配置中添加上面的代码,就可以确保push成功。

等到push成功之后,再注释这段配置,使用#注释,以便下一次需要的时候再开启。

最新文章

  1. 关于C++中的cout
  2. sqlAlchemy 按DateTime字段的年或月进行group_by查询
  3. Z-偏移量
  4. leetcode@ [295]Find Median from Data Stream
  5. Android应用开发基础篇(5)-----Handler与多线程
  6. AngularJS 初学笔记(理论基础)
  7. 计蒜客蓝桥杯模拟赛五J. 程序设计:放置守卫
  8. chrome开发工具指南(十)
  9. bind、apply与call
  10. IE下判断IE版本的语句...[if lte IE 8]……[endif]
  11. React 精要面试题讲解(二) 组件间通信详解
  12. HBase篇(1)-特性与应用场景
  13. day 9 - 2 函数练习
  14. MongDB-基础
  15. 基于springboot的restful接口的单元测试示例
  16. IDEA PYCHARM USAGE NOTE
  17. 2018-2019-2 20165302 《网络对抗技术》Exp3 免杀原理与实践
  18. tail -f 然后grep,处理缓存的问题
  19. 如何安装win10和linux [ubuntu14]双系统
  20. 如何高效使用Google

热门文章

  1. 为代码减负之<三>视图(SQL)
  2. UVA - 10043 Chainsaw Massacre
  3. Spring整合TimerTask实现定时任务调度
  4. 派生类地址比基类地址少4(CDerived对象的起始地址存放的是虚表指针vptr,也就是子类的第一项内容。接下来的是基类的成员变量,接下来再是自身的成员变量)
  5. 大话主席(superslide和 touchslide)插件的使用
  6. Linux部署之NFS方式安装系统
  7. 话说普通的TPlink ip地址是192.168.1.2 在LAN里有台电脑共享打印机 ip 是192.168.0.2 计算机名为j02 然后我把这台电脑加到DMZ里,让根路由器同一网段的可以访问 但添加打印机的时候 提示 计算机名重复 后来在需要添加打印机电脑的hosts文件里加了 192.168.1.2 j02 式了一样不行 话说,这个打印机该怎么添加
  8. C++下面关于字符串数组的一些操作
  9. CDR入门教程-CorelDRAW排版教程
  10. 迁移IPv6:6To4隧道技术