我想使用一个mercurial subrepo作为git子模块。我已按照发布到1这个完全相同的问题的指示进行操作。但是,即使所有设置步骤都已成功完成,并且在克隆主资源库及其子资源时遇到错误,并且没有错误。有没有办法使用Mercurial存储库作为Git子模块? (更新)
另外在1问题是5岁恐怕蠢货,时间已经改变了很多,所以我觉得这个问题值得回答
当我克隆我运行以下命令:
git clone --recursive
我得到以下错误:
Cloning into '/home/user/projects/mainrepo/project/hgsubrepo'... repository does not exist. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
fatal: clone of '[email protected]:mischief/ippan2.git/project/hgsubrepo' into submodule path '/home/user/projects/mainrepo/project/hgsubrepo' failed Failed to clone 'project/hgsubrepo'. Retry scheduled Cloning into '/home/user/projects/mainrepo/project/hgsubrepo'... repository does not exist. fatal: Could not read from remote repository.
如果我解释结果正确Git是试图推断远程URL为hgsubrepo
但使用git
协议不mercurial
因为我希望给我的的效应初探的理解1
是否有不同的/更好/新来的git内处理善变subrepos方式?
编辑1: 主要仓库住在本地文件夹
/home/user/projects/mainrepo
汞库住在
/home/user/project/mainrepo/projects/