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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user