def assert_ref()

in src/buildstream_plugins/sources/git.py [0:0]


    def assert_ref(self):
        if not self.has_ref():
            raise SourceError(
                "{}: expected ref '{}' was not found in git repository: '{}'".format(self.source, self.ref, self.url)
            )