summaryrefslogtreecommitdiff
path: root/src/buildstream/source.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/source.py')
-rw-r--r--src/buildstream/source.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/source.py b/src/buildstream/source.py
index dbe113409..f49cdb493 100644
--- a/src/buildstream/source.py
+++ b/src/buildstream/source.py
@@ -1004,7 +1004,7 @@ class Source(Plugin):
# If we're synthesising missing list entries, we know we're
# doing this for project.refs so synthesise empty dicts for the
# intervening entries too
- lpath = [step for step in path]
+ lpath = path.copy()
lpath.append("") # We know the last step will be a string key
for step, next_step in zip(lpath, lpath[1:]):
if type(step) is str: # pylint: disable=unidiomatic-typecheck