in src/buildstream_plugins/sources/git.py [0:0]
def describe(self, rev):
_, output = self.source.check_output(
[
self.source.host_git,
"describe",
"--tags",
"--abbrev=40",
"--long",
"--always",
rev,
],
fail="Unable to find revision {}".format(rev),
cwd=self.mirror,
)
return output.strip()