You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 08:18:40 UTC
[buildstream] 04/06: temp stuff for #376
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch issue-21_Caching_build_trees
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit a55cf2fe411efba10b8f20693bd5932ea68fe313
Author: Phillip Smyth <ph...@Nexus-x240.dyn.ducie.codethink.co.uk>
AuthorDate: Wed Apr 25 14:45:19 2018 +0100
temp stuff for #376
---
buildstream/plugins/sources/git.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/buildstream/plugins/sources/git.py b/buildstream/plugins/sources/git.py
index f178656..70a725f 100644
--- a/buildstream/plugins/sources/git.py
+++ b/buildstream/plugins/sources/git.py
@@ -121,6 +121,12 @@ class GitMirror():
fail="Failed to fetch from remote git repository: {}".format(self.url),
cwd=self.mirror)
+ def describe(self):
+ self.source.call([self.source.host_git, 'describe'],
+ fail="Failed to find a tag in remote git repository: {}".format(self.url),
+ cwd=self.mirror)
+
+
def has_ref(self):
if not self.ref:
return False