无法将更新推送到gitlab

时间:2014-08-07 00:57:31

标签: git gitlab

我已成功推送并从我公司运行的gitlab实例中提取。但是,看似随意,当我尝试推送更新时,我收到以下错误:

$ git push
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 648 bytes | 0 bytes/s, done.
Total 5 (delta 4), reused 0 (delta 0)
remote: Enforcing Policies... 
remote: (refs/heads/dev) (bbb781) (7313fe)
remote: hooks/update:26:in `match': invalid byte sequence in US-ASCII (ArgumentError)
remote:     from hooks/update:26:in `block in check_message_format'
remote:     from hooks/update:24:in `each'
remote:     from hooks/update:24:in `check_message_format'
remote:     from hooks/update:33:in `<main>'
remote: error: hook declined to update refs/heads/dev
To git@git.xxx.com:group-name/project-name.git
 ! [remote rejected] dev -> dev (hook declined)
error: failed to push some refs to 'git@git.xxx.com:grou-name/project-name.git'

我能够提出的唯一解决方案是:

  1. 复制分支(使用不同的名称)
  2. 取消发布旧分支
  3. 删除旧分支
  4. 重命名分支以匹配旧的未发布分支
  5. $ git push
  6. 我上面的方法不太好,但这是我继续工作的唯一方法。我找到了这个解决方案:https://stackoverflow.com/a/19784285/1438819但我个人无法访问服务器上的gitlab来尝试修复。

    更多信息: 我正在运行git版本2.0.1, Gitlab是7.1.1版本facfec4

0 个答案:

没有答案