为什么git在我的子模块网址中误解了一个冒号?

时间:2018-12-10 06:13:08

标签: git azure-web-sites git-submodules kudu

我的仓库的.gitmodules文件如下:

[submodule "deps/Framework"]
    path = deps/Framework
    url = git://git@github.com/MyOrg/framework-php.git
    branch = reorg
[submodule "deps/MyClient"]
    path = deps/MyClient
    url = git://git@github.com/MyOrg/myclient-php.git
    branch = publish

当我在Azure Kudu的命令行中运行git submodule update --init --progress时,出现此错误:

Cloning into 'D:/home/site/repository/mywebsite/deps/MyClient'...
ssh: Could not resolve hostname github.com:MyOrg: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.
fatal: clone of 'ssh://git@github.com:My/Myclient-php.git' into submodule path 'D:/home/site/repository/mywebsite/deps/MyClient' failed
Failed to clone 'deps/MyClient'. Retry scheduled
Cloning into 'D:/home/site/repository/mywebsite/deps/Framework'...
ssh: Could not resolve hostname github.com:MyOrg: Name or service not known
fatal: Could not read from remote repository.

为什么将github.com/MyOrg转换为github.com:MyOrg(无论如何都是有效的SSH URL)然后拒绝它?

我的git config -l输出未列出任何submodule...条目。

0 个答案:

没有答案
相关问题