diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-15 19:11:36 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-12-15 19:11:36 +0000 |
| commit | d43c7adfb4ea6d29c09d61ba8c4e0f77b4ad7094 (patch) | |
| tree | 501a86478f6d9433b477805fad9fee6dcefa5d60 | |
| parent | 714a5cf84cf08d53fb76ec42c5bec0296ac245a3 (diff) | |
Try to fix git clones with new security feature.
| -rwxr-xr-x | cdist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1017,7 +1017,7 @@ class Tree(object): ref = '--reference-if-able %s/%s.git' % (config.get('git_reference'), self.name) else: ref = '' - command('git clone %s %s %s/%s.git %s/src/%s' % (flags, ref, config.get('git_prefix'), self.name, target.directory, self.name)) + command('git -c protocol.file.allow=always clone %s %s %s/%s.git %s/src/%s' % (flags, ref, config.get('git_prefix'), self.name, target.directory, self.name)) os.chdir('%s/src/%s' % (target.directory, self.name)) if self.commit_ish is not None: |
