From 00ea3c16190861bc1395d2a04dd8588f8ae5fd31 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Fri, 20 Jul 2018 20:26:42 +0900 Subject: git source plugin: Omit the .git directory completely. This will break builds which use `git describe` to determine their version number until a more elegant solution is implemented, and will unblock work on caching of build trees in the artifacts. --- buildstream/plugins/sources/git.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildstream/plugins/sources/git.py b/buildstream/plugins/sources/git.py index d079d8747..d1ea81763 100644 --- a/buildstream/plugins/sources/git.py +++ b/buildstream/plugins/sources/git.py @@ -163,6 +163,9 @@ class GitMirror(): fail="Failed to checkout git ref {}".format(self.ref), cwd=fullpath) + # Remove .git dir + shutil.rmtree(os.path.join(fullpath, ".git")) + def init_workspace(self, directory): fullpath = os.path.join(directory, self.path) -- cgit v1.2.1