[submodule "plugins-custom/plugin-A"]
path = plugins-custom/plugin-A
url = ../plugin-A.git
此存储库存在,可以使用
git submodule update --init
.
使用Bitbucket管道运行同一命令时,会将以下行打印到日志中:
+ git submodule update --init
Submodule 'plugins-custom/plugin-A' (http://bitbucket.org/$team/plugin-A.git) registered for path 'plugins-custom/plugin-A'
Cloning into 'plugins-custom/plugin-A'...
fatal: could not read Username for 'https://bitbucket.org': No such device or address
Clone of 'http://bitbucket.org/$team/plugin-A' into submodule path 'plugins-custom/plugin-A' failed
我不知道为什么会这样,我已经试过其他步骤了:
-
plugin-A
-
我把子模块的URL从相对的修改为绝对的(在URL中给出
git submodule
正确确定)
-
git config http.https://bitbucket.org.proxy http://localhost:29418/
我的设置有明显的错误吗?我还能试着让它工作吗?