summaryrefslogtreecommitdiff
path: root/morphlib/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/plugins')
-rw-r--r--morphlib/plugins/branch_and_merge_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/plugins/branch_and_merge_plugin.py b/morphlib/plugins/branch_and_merge_plugin.py
index f0cbea81..332cdfe9 100644
--- a/morphlib/plugins/branch_and_merge_plugin.py
+++ b/morphlib/plugins/branch_and_merge_plugin.py
@@ -739,7 +739,7 @@ class BranchAndMergePlugin(cliapp.Plugin):
# We must first get the full set of strata. One same stratum may be
# in multiple systems and each system may use a different ref.
strata = {}
- for f in glob.glob(os.path.join(root_repo_dir, '*.morph')):
+ for f in sorted(glob.iglob(os.path.join(root_repo_dir, '*.morph'))):
name = os.path.basename(f)[:-len('.morph')]
morphology = self.load_morphology(root_repo_dir, name)
if morphology['kind'] != 'system':