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):