From 1f813bcaf38019b109b20856e1b0de494b1467a8 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Thu, 12 Sep 2019 22:11:09 +0200 Subject: [PATCH] Ensure that exporting files from git ends up in the target folder. --- builders/builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builders/builder.py b/builders/builder.py index 3fddda6..9dd79d5 100644 --- a/builders/builder.py +++ b/builders/builder.py @@ -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):