Ignore detached head warning while cloning subprojects with tags

pull/10331/head
zxey 3 years ago committed by Jussi Pakkanen
parent ca77adea89
commit b30d04f52b
  1. 2
      mesonbuild/wrap/wrap.py

@ -468,7 +468,7 @@ class Resolver:
verbose_git(['fetch', self.wrap.get('url'), revno], self.dirname, check=True)
verbose_git(checkout_cmd, self.dirname, check=True)
else:
verbose_git(['clone', *depth_option, '--branch', revno, self.wrap.get('url'),
verbose_git(['-c', 'advice.detachedHead=false', 'clone', *depth_option, '--branch', revno, self.wrap.get('url'),
self.directory], self.subdir_root, check=True)
if self.wrap.values.get('clone-recursive', '').lower() == 'true':
verbose_git(['submodule', 'update', '--init', '--checkout', '--recursive', *depth_option],

Loading…
Cancel
Save