summaryrefslogtreecommitdiff
path: root/src/buildstream/_gitsourcebase.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-07-08 19:15:39 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commit61ea58e52b75802ea0e4b760563a50149c905b31 (patch)
treef9e9c4838ecaf84b98b8bb70f04c60f6df66b56f /src/buildstream/_gitsourcebase.py
parent099e3ebf3aad424be2f3488aef9d9d961b700483 (diff)
downloadbuildstream-61ea58e52b75802ea0e4b760563a50149c905b31.tar.gz
plugin: remove 'node_get_provenance', use the Node API directly
Diffstat (limited to 'src/buildstream/_gitsourcebase.py')
-rw-r--r--src/buildstream/_gitsourcebase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_gitsourcebase.py b/src/buildstream/_gitsourcebase.py
index 311bfca08..fb6010b1e 100644
--- a/src/buildstream/_gitsourcebase.py
+++ b/src/buildstream/_gitsourcebase.py
@@ -396,7 +396,7 @@ class _GitSourceBase(Source):
self.ref_format = node.get_str('ref-format', 'sha1')
if self.ref_format not in ['sha1', 'git-describe']:
- provenance = self.node_provenance(node, member_name='ref-format')
+ provenance = node.get_scalar('ref-format').get_provenance()
raise SourceError("{}: Unexpected value for ref-format: {}".format(provenance, self.ref_format))
# At this point we now know if the source has a ref and/or a track.