Pass recursive=true into config.getNames() JGit method
This change solves the SSH aliasing. Without the parameters, section content is not found. Change-Id: I83acb53b8e919ea8cdd634eca1b66b04e6ef3107
This commit is contained in:
parent
6b53357fa6
commit
f33cbe4ed4
@ -51,7 +51,7 @@ public class MergeableFileBasedConfig extends FileBasedConfig {
|
||||
}
|
||||
}
|
||||
|
||||
for (String name : s.getNames(section)) {
|
||||
for (String name : s.getNames(section, true)) {
|
||||
setStringList(section, null, name,
|
||||
Lists.newArrayList(s.getStringList(section, null, name)));
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ public class SshModule extends FactoryModule {
|
||||
@Inject
|
||||
SshModule(@GerritServerConfig Config cfg) {
|
||||
aliases = Maps.newHashMap();
|
||||
for (String name : cfg.getNames("ssh-alias")) {
|
||||
for (String name : cfg.getNames("ssh-alias", true)) {
|
||||
aliases.put(name, cfg.getString("ssh-alias", null, name));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user