[英]How to add bitbucket private Git repository to AOSP?
my bitbucket ssh url: git@bitbucket.org:MY_USERNAME/PROJECT_NAME.git
我的bitbucket ssh url: git@bitbucket.org:MY_USERNAME/PROJECT_NAME.git
.repo/local_manifests/manifest.xml 的.repo / local_manifests /的manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="my_remote" fetch="git@bitbucket.org:MY_USERNAME/" />
<project path="packages/apps/PROJECT_NAME" name="PROJECT_NAME" remote="my_remote" revision="master" />
</manifest>
I get this error after repo sync
: repo sync
后我收到此错误:
Fetching projects: 99% (409/413) fatal: remote error: Git repository not found
error: Cannot fetch PROJECT_NAME
error: Exited sync due to fetch errors
I have all the rights of reading/writing into the bitbucket repository. 我拥有读/写入bitbucket存储库的所有权利。
This works for me: 这对我有用:
<remote name="my_remote" fetch="ssh://git@bitbucket.org/MY_USERNAME"/>
From the BitBucket documentation , section "Repository URL formats by connection protocol" 从BitBucket 文档 “按连接协议的存储库URL格式”部分
I know we used to use some toolchains in our manifest hosted on BitBucket, but I think due to bitbucket change or repo tool change we had to stop. 我知道我们曾经在BitBucket托管的清单中使用了一些工具链,但我认为由于bitbucket更改或repo工具更改我们不得不停止。 So I looked back at one of my manifests history, and found it here: https://github.com/sudosurootdev/platform_manifest/blob/edcde119f3b8f865582fdaa368e9cc7a3b877f3c/default.xml#L502 the remote was from here: https://github.com/sudosurootdev/platform_manifest/blob/edcde119f3b8f865582fdaa368e9cc7a3b877f3c/default.xml#L15 ...on bitbucket. 所以我回顾了我的一个清单历史,并在此处找到了它: https : //github.com/sudosurootdev/platform_manifest/blob/edcde119f3b8f865582fdaa368e9cc7a3b877f3c/default.xml#L502遥控器来自这里: https : //github.com bitbucket上的/sudosurootdev/platform_manifest/blob/edcde119f3b8f865582fdaa368e9cc7a3b877f3c/default.xml#L15 ... I would agree with the comment though, try the git://
prefix... however if that doesn't work you may have to copy the project over to Github, which is what we ended up doing. 我同意评论,但尝试git://
前缀...但是如果这不起作用,你可能必须将项目复制到Github,这是我们最终做的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.