【问题标题】:Azure github deployment with private submodule带有私有子模块的 Azure github 部署
【发布时间】:2016-05-04 04:26:55
【问题描述】:

我正在尝试将带有 github 的私有存储库部署到 Azure 上,它曾经完美地工作,直到我将一个存储库放入也托管在 github 上的单独私有子模块中。

现在,每次我尝试部署到 Azure 时,它​​都会在子模块部署期间中断,并显示以下消息: 致命:无法读取“https://github.com”的用户名

我能做些什么来解决它?

【问题讨论】:

  • 我在 Azure 上的活动日志中得到了类似的内容:克隆到“项目”中... bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) 致命:无法读取“github.com”的用户名:无效参数致命:将“github.com/username/submodule.git”克隆到子模块路径“子模块”失败 D:\Program Files (x86)\Git\cmd\git.exe 子模块更新 --init --recursive

标签: git azure github git-submodules


【解决方案1】:

this issue(或this question)一样,检查主仓库和子模块的远程网址

cd /path/to/repo
git remote -v
cd path/to/submodule
git remote -v

您可以switch the url of the submodule to an ssh one instead of an https,添加、提交和推送父 repo(以记录更改),然后再次部署。

【讨论】:

  • 同样的问题.. 现在我得到错误:找不到存储库。致命:无法从远程存储库读取。请确保您具有正确的访问权限并且存储库存在。克隆 'git@github. com:username/repo.git'
猜你喜欢
  • 2022-07-22
  • 2012-05-14
  • 2014-11-27
  • 2019-11-27
  • 1970-01-01
  • 2012-05-24
  • 2022-07-05
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多