简体   繁体   中英

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.

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'

<?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.

<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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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