aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-01-24 14:57:06 -0500
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-01-25 13:49:00 +0530
commit5c8dbdcd38893bd60fe5fc13c54efed01fc7f742 (patch)
treed624406a40dfc4cc02dc8f634bbed49f1ea846d5 /mesonbuild
parent37716aed6dd3eb0694867125fcefcec9870b96f0 (diff)
downloadmeson-5c8dbdcd38893bd60fe5fc13c54efed01fc7f742.zip
meson-5c8dbdcd38893bd60fe5fc13c54efed01fc7f742.tar.gz
meson-5c8dbdcd38893bd60fe5fc13c54efed01fc7f742.tar.bz2
wrap: Fix git clone with commit id in revision
Fixes: #6505.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/wrap/wrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py
index e9b47a0..51ad86e 100644
--- a/mesonbuild/wrap/wrap.py
+++ b/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: