diff options
Diffstat (limited to 'src/buildstream/_gitsourcebase.py')
-rw-r--r-- | src/buildstream/_gitsourcebase.py | 2 |
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. |