wrap: Fix git clone with commit id in revision

Fixes: #6505.
pull/6506/head
Xavier Claessens 5 years ago committed by Nirbheek Chauhan
parent 37716aed6d
commit 5c8dbdcd38
  1. 2
      mesonbuild/wrap/wrap.py

@ -281,7 +281,7 @@ class Resolver:
if not is_shallow:
verbose_git(['clone', self.wrap.get('url'), self.directory], self.subdir_root, check=True)
if revno.lower() != 'head':
if verbose_git(['checkout', revno], self.dirname):
if not verbose_git(['checkout', revno], self.dirname):
verbose_git(['fetch', self.wrap.get('url'), revno], self.dirname, check=True)
verbose_git(['checkout', revno], self.dirname, check=True)
else:

Loading…
Cancel
Save