为什么git误解了我的子模块url中的冒号?

k0pti3hp  于 2021-06-24  发布在  Kudu
关注(0)|答案(0)|浏览(202)

我的回购 .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

当我跑的时候 git submodule update --init --progress 在azure kudu的命令行中,我得到以下错误:

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... 条目。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题