没有Gerrit的Android回购工具`repo update`

Joh*_*hee 5 git gitlab repo

我们正在为自己的非Android软件使用Android回购工具。我们使用的是GitLab,而不是Gerrit进行代码审查。使用GitLab,我只需要对主题分支进行普通推送,就像git push在工作区的每个存储库中一样。

如何在多个存储库上repo upload 进行普通git push设置?您可能会说我需要不存在的repo push命令。

我尝试使用<remote review />清单文件中属性的各种值来实现这一点,例如:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

  <remote  name="wfe"
           alias="origin"
           review="origin"
           fetch=".." />
  <remote  name="wcore"
           alias="origin"
           review="ssh://git@gitlabserver:sw/wcore"
           fetch=".." />
  <default revision="master"
           remote="wfe"
           sync-j="4" />

  <project path="wcore" name="wcore" remote="wcore" groups="sdk" />
  <project path="wfe" name="wfe" groups="sdk" />

</manifest>
Run Code Online (Sandbox Code Playgroud)

但是,我得到如下错误:

repo upload

----------------------------------------------------------------------
[FAILED] wcore/          repo-test      
       (ssh://git@gitlabserver:sw/wcore: <urlopen error [Errno 110] Connection timed out>)
[FAILED] wfe/            repo-test      
       (origin: <urlopen error [Errno -2] Name or service not known>)
Run Code Online (Sandbox Code Playgroud)

Joh*_*hee 3

我使用执行此操作的命令增强了Android 存储库工具。repo push此外,它还按照清单文件中声明的顺序执行推送。

我们已经在生产中成功使用它有一段时间了。