Mercurial subrepo - 更改了.hgsub文件,但它仍然试图从旧服务器中提取

时间:2012-06-12 20:55:44

标签: mercurial subrepos

我有一个merfial repo with subrepo:

repo
  subrepo
  .hgsub

.hgsub最初有

subrepo = https://<domain>/user/repo

和域设置了我的dns指向bitbucket(我正在玩他们的自定义域功能)。

我现在已经将.hgsub改为:

subrepo = https://user@bitbucket.org/user/repo

但是当我试图从subrepo中拉出来时,我得到错误:

abort: <domain> certificate error: certificate is for bitbucket.org

这意味着它仍然试图从我的域而不是bitbucket中提取。

我已检查了我的repo/subrepo/.hg/hgrc文件并将其正确更新为:

[paths]
default = https://user@bitbucket.org/user/repo

为什么它仍然试图从旧域中撤出?

如果我尝试从repo推出,那么它会正确推送到bitbucket。

编辑:实际上,从subrepo推送不起作用,但从父仓库

起作用

repo > push - 工作,推送到bitbucket

subrepo > pull - 无效,尝试从我的域中提取

subrepo > push - 无效,尝试从我的域中提取

1 个答案:

答案 0 :(得分:2)

更改.hgsub

后,需要重新克隆嵌套存储库
相关问题