git push 報錯 remote: error: hook declined to update

bogon:xxx longer$ git push origin test:test
Counting objects: 49, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (26/26), done.
Writing objects: 100% (26/26), 12.72 KiB | 0 bytes/s, done.
Total 26 (delta 19), reused 0 (delta 0)
remote: /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find celluloid-0.15.2 in any of the sources (Bundler::GemNotFound)
remote: from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
remote: from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
remote: from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
remote: from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
remote: from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
remote: from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
remote: from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
remote: from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
remote: from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>'
remote: from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
remote: from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
remote: error: hook declined to update refs/heads/test
To https://git.oschina.net/xxx/xxx.git
 ! [remote rejected] test -> test (hook declined)
error: failed to push some refs to 'https://git.oschina.net/xxx/xxx.git'


今天push遠程倉庫的時候除了這麼一個錯誤,網上搜了一下,說修改.git/description,把Unnamed repository後面的內容都刪掉git

我打開文件後是這樣的:shell

Unnamed repository; edit this file 'description' to name the repository.ruby

我沒有修改直接退出了,再次push,發現忽然好了~~ui

Thanks God.this

相關文章
相關標籤/搜索