简体   繁体   English

git 和 review 的不同相对路径的回购清单

[英]Repo manifest for different relative paths for git and review

Is there any way to configure repo if there are different relative path for fetch and review.如果 fetch 和 review 的相对路径不同,有没有办法配置 repo。

Example示例

Fetch managed by gitweb : ssh://gitweb.foo.com/data/bar/foo.git
Review managed by gerrit : https://gerrit.foo.com:8081/review/bar/foo

With below manifest entries, fetch / sync works fine but repo upload fails as it looks up for https://gerrit.foo.com:8081/data/bar/foo.git and not 'https://gerrit.foo.com:8081/review/bar/foo.git'使用以下清单条目,获取/同步工作正常,但repo upload失败,因为它查找https://gerrit.foo.com:8081/data/bar/foo.git而不是'https://gerrit.foo.com:8081/review/bar/foo.git'

<?xml version="1.0" encoding="UTF-8"?>
  <manifest>
    <remote name="repo_name" fetch="ssh://gitweb.foo.com/" review="https://gerrit.foo.com:8081" />
    <project path="code/foo" name="data/bar/foo" remote="repo_name" />
  </manifest>

What would be the right way to point gerrit review with a path, in repo manifest file.在 repo 清单文件中用路径指向 gerrit review 的正确方法是什么。

<project path="code/foo" name="data/bar/foo" remote="repo_name" />

For manifest file of repo, the path attribute of project element is used to specify the folder where the project will be clone to, ie your worktree folder, the name attribute will be appended to remote url for specifying the remote repository.对于repo 的manifest 文件, project元素的path属性用于指定项目将被克隆到的文件夹,即您的worktree 文件夹, name属性将附加到远程url 以指定远程存储库。 It seems you mix the usage of path attribute and name atribute in project element.看来您在项目元素中混合使用了路径属性和名称属性。

You can refer manifest-format for more details of manifest file.您可以参考manifest-format以获取更多清单文件的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM