My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 886: Replication should honor url.insteadof
3 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----


Sign in to add a comment
 
Reported by knw...@gmail.com, Mar 23, 2011
Gerrit's repliction.config file has only a simple replacement mechanism for specifying replication URLs.

[remote "mirror"]
    url = mirror1.example.org:/pub/git/${name}.git

Currently, ${name} is simply replaced by the name of the replicated project.

Unfortunately, it is not possible to replace some parts of the project names, e.g. "core/platform" -> "platform", if the mirror's directory structure is different.

This limitation could be removed if Gerrit uses the URL replacement patterns defined in .gitconfig for pushes to replication URLs:

[url "mirror1.example.org:/pub/git/"]
    insteadOf = mirror1.example.org:/pub/git/core/
May 20, 2011
Project Member #1 nas...@grainawi.org
(No comment was entered for this change.)
Status: Accepted
May 23, 2011
#2 sop@google.com
JGit needs to honor url.insteadof, then Gerrit will just do the right thing.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=346873
Summary: Replication should honor url.insteadof
Labels: Component-JGit
Nov 24, 2013
#3 peter.ge...@appdynamics.com
It appears that the JGit bug was closed in early 2012. Has anyone been able to get this to work? Gerrit seems to still be ignoring url.insteadof in 2.7
Sign in to add a comment

Powered by Google Project Hosting