Skip to content
Snippets Groups Projects
Commit b662f175 authored by Tristan Van Berkom's avatar Tristan Van Berkom Committed by Tristan Van Berkom
Browse files

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.

Fixes issue #455
parent f484ab4f
No related branches found
No related tags found
Loading
Pipeline #26178775 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment