问题标签 [shallow-clone]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
45 浏览

git - git shallow 不适用于 jenkins 上的子模块?

我正在将esp-idf作为我的开发子模块,我也集成了 Jenkins。它运行完美,没有在 Jenkins 上添加浅克隆功能。但是,当我尝试使用深度为 1、5 到 10 的浅克隆来克隆子模块时,它会引发与以下相同的错误,

克隆到“平台/esp32”... 致命:参考不是树:286202caa31b61c2182209f37f8069a0b60fb942 无法在子模块路径“SDK/平台/esp32”子模块中签出“286202caa31b61c2182209f37f8069a0b60fb942”SDK 子模块失败

但是,它可以在 git 命令和没有 Jenkins 的情况下正常工作。

任何帮助都会对我有益。

我的 Jenkins 设置如下所示,

在此处输入图像描述

0 投票
2 回答
60 浏览

eclipse - Eclipse - 如何 git clone --depth 1

我必须在 Eclipse 中导入一个相当大的(bitbucket)git 存储库。现在 Eclipse 在克隆一个小时后就卡住了。为了加快速度,我想以“浅”模式克隆它(只进行最后一次提交)。

我用 CLI 对此进行了测试git clone --depth 1 https://bitbucket.myco.local:8443/scm/big/quite-big-project.git,它运行良好:不到 2 分钟。无论如何,我必须将项目克隆到 Eclipse 中,并且不知道如何在 Eclipse 的 git 导入项目向导中设置深度。