GitLab git push 失败

42 views
Skip to first unread message

Bojie Li

unread,
Jun 25, 2014, 3:14:19 AM6/25/14
to USTC_LUG
其他仓库 git push 能够成功。但 ustc-blog/wordpress 这个仓库不行。
@Yifan Gao 是不是跟最近 gitlab 升级有关?

$ git push
Password for 'https://b...@mail.ustc.edu.cn@gitlab.lug.ustc.edu.cn': 
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 525 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.3.2 in any of the sources (Bundler::GemNotFound)
remote:         from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler/spec_set.rb:85:in `map!'
remote:         from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler/spec_set.rb:85:in `materialize'
remote:         from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler/definition.rb:133:in `specs'
remote:         from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler/definition.rb:178:in `specs_for'
remote:         from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler/definition.rb:167:in `requested_specs'
remote:         from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler/environment.rb:18:in `requested_specs'
remote:         from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler/runtime.rb:13:in `setup'
remote:         from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler.rb:120:in `setup'
remote:         from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.6.3/lib/bundler/setup.rb:17:in `<top (required)>'
remote:         from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
remote:         from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
remote: error: hook declined to update refs/heads/master
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'https://gitlab.lug.ustc.edu.cn/ustc-blog/wordpress.git'

Yifan Gao

unread,
Jun 25, 2014, 6:43:48 AM6/25/14
to ustc...@googlegroups.com
本地测试没有重现这个问题。
更具提供的的信息分析,这似乎是由于debian包管理器安装的ruby库文件没有卸载干净引起的。我刚才使用aptitude删除了 libffi5{u} libmysql-ruby{a} libruby1.8{p} libruby1.9.1{p} ruby-mysql{a} ruby1.9.1{p} rubygems1.8{p} ,并重启了gitlab。请尝试重新push,看看问题有没有解决。
-- 
Yifan Gao

开启 2014年6月25日 at 下午3:14:18, Bojie Li (boj...@gmail.com) 写:

--
-- 来自USTC LUG
请使用gmail订阅,不要灌水。
更多信息more info:http://groups.google.com/group/ustc_lug?hl=en?hl=en

---
You received this message because you are subscribed to the Google Groups "USTC_LUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ustc_lug+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bojie Li

unread,
Jun 25, 2014, 6:47:59 AM6/25/14
to USTC_LUG
现在好了。有可能是因为用的是 https 而不是 ssh,现在 https 和 ssh 都好了。

FYI,测试 git push 不一定要添加空行,可以用 git commit --allow-empty 创建一个没有任何修改的 commit。

Yifan Gao

unread,
Jun 25, 2014, 6:49:50 AM6/25/14
to ustc...@googlegroups.com
学习了
-- 
Yifan Gao

开启 2014年6月25日 at 下午6:47:59, Bojie Li (boj...@gmail.com) 写:

Ding ZhiGang

unread,
Jun 25, 2014, 6:58:20 AM6/25/14
to ustc...@googlegroups.com
又涨姿势了。一直不知道还有这功能!

---------
Ding ZhiGang
Reply all
Reply to author
Forward
0 new messages