【异常】gitlab error: failed to push some refs to

1 错误信息

remote: hooks/pre-receive:14:in `require_relative': cannot load such file -- /var/opt/gitlab/git-data/repositories/talkilla/talkilla.git/lib/gitlab_custom_hook (LoadError)
remote: from hooks/pre-receive:14:in `<main>'
To new.gitlab.jiushiyaokuaile.cn:talkilla/talkilla.git
! [remote rejected] hotfix/20210914 -> hotfix/20210914 (pre-receive hook declined)
error: failed to push some refs to 'git@new.gitlab.jiushiyaokuaile.cn:talkilla/talkilla.git'

 

2 错误原因是自己迁移gitlab copy代码的时候失去了 hooks文件的软连接,重新再代码的git目录下软连接一下hooks文件解决问题

 

 

 

ln -s /opt/gitlab/embedded/service/gitlab-shell/hooks hooks

chown -R git:git hooks

 

posted @   Questions张  阅读(457)  评论(0编辑  收藏  举报
编辑推荐:
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
阅读排行:
· Blazor Hybrid适配到HarmonyOS系统
· Obsidian + DeepSeek:免费 AI 助力你的知识管理,让你的笔记飞起来!
· 解决跨域问题的这6种方案,真香!
· 一套基于 Material Design 规范实现的 Blazor 和 Razor 通用组件库
· 分享4款.NET开源、免费、实用的商城系统
点击右上角即可分享
微信分享提示