Ensure that exporting files from git ends up in the target folder.

This commit is contained in:
Tomas Groth 2019-09-12 22:11:09 +02:00
parent c0bf1c1af3
commit 1f813bcaf3
1 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,8 @@ class Builder(object):
if os.path.exists(self.work_path):
rmtree(self.work_path)
self._print('Exporting the release version...')
self._git('checkout-index', self.branch_path, ['-f', '-a', '--prefix={folder}'.format(folder=self.work_path)],
# Note that it is very important that the prefix ends with a slash to get the files into the folder
self._git('checkout-index', self.branch_path, ['-f', '-a', '--prefix={folder}/'.format(folder=self.work_path)],
'Error exporting the code')
def get_extra_parameters(self):