Try more to fix git clones.
authorCarl Hetherington <cth@carlh.net>
Thu, 15 Dec 2022 20:05:28 +0000 (21:05 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 15 Dec 2022 20:05:28 +0000 (21:05 +0100)
cdist

diff --git a/cdist b/cdist
index 36d3bb5408fb3d076fbb75b8e16d5c77126e0d53..da87f8473986e64d866b2ae7fc8dbe9ce3a635f1 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -1041,7 +1041,7 @@ class Tree(object):
                         if os.path.exists(ref_path):
                             ref = '--reference %s' % ref_path
                     path = path.split(' ')[1]
-                    command('git submodule --quiet update %s %s' % (ref, path))
+                    command('git -c protocol.file.allow=always submodule --quiet update %s %s' % (ref, path))
 
         if os.path.exists('%s/wscript' % proj):
             v = read_wscript_variable(proj, "VERSION");