diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java index ce86dc20f..77ab150c6 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java @@ -55,9 +55,9 @@ import java.text.MessageFormat; import java.util.AbstractSet; import java.util.ArrayList; import java.util.Collections; -import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; +import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; @@ -1277,7 +1277,7 @@ public class Config { } public Set parse(Config cfg) { - final Set result = new HashSet(); + final Set result = new LinkedHashSet(); while (cfg != null) { for (final Entry e : cfg.state.get().entryList) { if (e.subsection != null && e.name == null