IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    expected shallow list 问题的解决

    Teacher Du发表于 2024-11-01 03:51:26
    love 0

    最近给博客圈小伙伴 Vian 同学架设了在线编辑器,实现了通过 GitLab 管理博客文章,通过 gitlab-runner 激活同步和部署操作。不过在近期升级时遇到一个问题导致部署失败,本文记录解决方法。

    问题

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    Running with gitlab-runner 14.7.0 (98daeee0)
    on VM-20-12-centos u6yhrxyg
    Preparing the "shell" executor
    Using Shell executor...
    Preparing environment
    Running on VM-20-12-centos...
    Getting source from Git repository
    Fetching changes with git depth set to 20...
    Reinitialized existing Git repository in /root/builds/u6yhrxyg/0/vian/vian/.git/
    fatal: git fetch-pack: expected shallow list
    fatal: The remote end hung up unexpectedly
    ERROR: Job failed: exit status 1

    注意:Vian 同学在编辑好文章后,会自动触发 gitlab-runner 激活同步操作,服务器通过 Git 获取 GitLab 上面的文章数据,同步到本地再编译部署。而在同步阶段出现如上错误。

    解决

    经过筛查,报错主要由 Git 版本较低导致,刚好杜老师前几天分享了如何升级 Git 版本教程,可至《CentOS7 如何升级 Git 版本》查看。

    经过升级,最终部署成功。



沪ICP备19023445号-2号
友情链接