我有一个带有子仓库的商品仓库:

repo
  subrepo
  .hgsub

.hgsub最初具有
subrepo = https://<domain>/user/repo

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

我现在将.hgsub更改为:
subrepo = https://[email protected]/user/repo

但是当我尝试从subrepo中提取时,出现错误:
abort: <domain> certificate error: certificate is for bitbucket.org

这意味着它仍在尝试从我的域而不是从bitbucket中拉取。

我已经检查了repo/subrepo/.hg/hgrc文件,并将其正确更新为:
[paths]
default = https://[email protected]/user/repo

为什么仍要尝试从旧域名中撤出?

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

编辑:实际上,从子存储库中推送不起作用,但从父存储库中起作用
repo > push-工作,推送到位桶
subrepo > pull-不起作用,尝试从我的域中提取
subrepo > push-不起作用,尝试从我的域中提取

最佳答案

更改.hgsub后,您需要重新克隆嵌套的存储库

关于mercurial - Mercurial subrepo-更改了.hgsub文件,但它仍尝试从旧服务器中拉出,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11004740/

10-10 09:28