我已成功推送并从我公司运行的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'
我能够提出的唯一解决方案是:
$ git push
我上面的方法不太好,但这是我继续工作的唯一方法。我找到了这个解决方案:https://stackoverflow.com/a/19784285/1438819但我个人无法访问服务器上的gitlab来尝试修复。
更多信息: 我正在运行git版本2.0.1, Gitlab是7.1.1版本facfec4