【发布时间】:2020-11-25 14:00:41
【问题描述】:
我目前正在开发一个 azure 管道。 在我的主要 github 存储库 (repo A) 中,我添加了另一个 github 存储库作为子模块。 (回购 B)
我的目标是使用以下 YAML 在管道开始处检查子模块:
stages:
- stage: checkout
jobs:
- job: checkout
steps:
- checkout: self
submodules: true
persistCredentials: true
然后尝试签出子模块,但以以下错误结束:
Cloning into '/home/vsts/work/1/s/devops-scripting'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled
fatal: clone of 'https://github.com/sourcerepo/devops-scripting.git' into submodule path '/home/vsts/work/1/s/devops-scripting' failed
使用不正确的用户/密码似乎是一个问题 - 如果我正在推送,我可以简单地使用提供用户/密码参数,但这似乎不适用于签出。
如何通过 azure 管道更新子模块?
【问题讨论】:
标签: git azure azure-pipelines git-submodules