git子模块添加失败与bitbucket回购

细胞片

我正在尝试将回购作为我的项目的子模块添加,因为它取决于它。该项目托管在bitbucket上,当我尝试使用this添加它时git submodule add https://bitbucket.org/blueluna/transmissionrpc,得到以下信息:

Cloning into 'transmissionrpc'...
fatal: repository 'https://bitbucket.org/blueluna/transmissionrpc/' not found
Clone of 'https://bitbucket.org/blueluna/transmissionrpc' into submodule path 'transmissionrpc' failed

我在终端中单击了链接本身,这导致了一个有效的链接。我不确定如何在我的github仓库中添加它。通过SSH和HTTPS中的git clone,它也会给我带来问题。请注意,复制用于克隆此存储库的原始命令如下:hg clone ssh://[email protected]/blueluna/transmissionrpc,据我所知,它使用了mercurial。

VonC

由于这是一个商业回购,因此会出现以下错误:git无法将其克隆为(git)子模块回购。

您需要一个git repo才能将您的repo添加为(git)子模块。
这将涉及转换,如“是否有办法将Mercurial存储库用作Git子模块? ”中所述。

OP cellsheet报道说,转换部分失败,并repo.branchtags()在水银2.9不可用,但它可以固定以下补丁hg-fast-export.py

270a271,287

> def legacy_branchtip(repo, heads):
>     '''return the tipmost branch head in heads'''
>     tip = heads[-1]
>     for h in reversed(heads):
>         if not repo[h].closesbranch():
>             tip = h
>             break
>     return tip
> 
> def legacy_branchtags(repo):
>     '''return a dict where branch names map to the tipmost head of
>     the branch, open heads come before closed'''
>     bt = {}
>     for bn, heads in repo.branchmap().iteritems():
>         bt[bn] = legacy_branchtip(repo, heads)
>     return bt
> 
272c289
<   branches=repo.branchtags()
---
>   branches=legacy_branchtags(repo)
> 

块引用

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章