|
Re: Git clone task Config sections override [message #1775617 is a reply to message #1775579] |
Thu, 02 November 2017 09:13 |
Ed Merks Messages: 33258 Registered: July 2009 |
Senior Member |
|
|
I expect the processing in org.eclipse.oomph.setup.git.impl.GitCloneTaskImpl.configureRepository(SetupTaskContext, Repository, String, boolean, String, String, String, List<? extends ConfigSection>) which does this: if (value.isEmpty())
{
config.unset(sectionName, subsectionName, key);
changed |= oldValue.length != 0;
}
else
{
config.setStringList(sectionName, subsectionName, key, value);
changed |= !Arrays.asList(oldValue).equals(value);
} to do what the method names suggest, i.e., unset the value or set the value, not to add a new value that duplicates. I suspect the structure you have is inappropriate, i.e., I suspect the section name should be "branch", with a subsection named "master", with properties nested in that subsection.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04249 seconds