2023.5.10-TS-gitlab-ci运行作业报错

TS:gitlab-ci运行作业报错fatal: git fetch-pack: expected shallow list,fatal: The remote end hung up unexpectedly-2023.5.10(已解决)

image-20230510203539907

1、故障现象

自己在使用gitlab-ci跑job时,之前都没错的,但是后面报错了……

image-20230510203018050

image-20230510203042150

fatal: git fetch-pack: expected shallow list

fatal: The remote end hung up unexpectedly

2、解决办法

解决方法,修改gitlab的cicd配置,如下图所示:

image-20230510203229120

image-20230510203243700

这里设置为git clone后,保存配置。

  • 测试

image-20230510203333727

此时,就可以正常运行作业了。

参考链接

http://blog.sway.com.cn/?p=878

http://blog.sway.com.cn/?p=878

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-zCicsUmn-1684397848169)(https://bucket-hg.oss-cn-shanghai.aliyuncs.com/img/image-20230510202813303.png)]

猜你喜欢

转载自blog.csdn.net/weixin_39246554/article/details/130749692