diff options
author | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-11-17 09:09:59 -0300 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-11-22 14:24:36 -0300 |
commit | 0ebf033f3175c8de13e7950a51efe8fe16b4b247 (patch) | |
tree | d7a76aba4625e50207b46229822154db183401fc /mesonbuild/wrap | |
parent | 28cd23ab6e1740918d70b28431c16fcba9f35501 (diff) | |
download | meson-0ebf033f3175c8de13e7950a51efe8fe16b4b247.zip meson-0ebf033f3175c8de13e7950a51efe8fe16b4b247.tar.gz meson-0ebf033f3175c8de13e7950a51efe8fe16b4b247.tar.bz2 |
wrap: Allow specifying push URL in wrap files using git
Diffstat (limited to 'mesonbuild/wrap')
-rw-r--r-- | mesonbuild/wrap/wrap.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index df15b53..19ed39a 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -153,6 +153,11 @@ class Resolver: if revno.lower() != 'head': subprocess.check_call(['git', 'checkout', revno], cwd=checkoutdir) + push_url = p.get('push-url') + if push_url: + subprocess.check_call(['git', 'remote', 'set-url', + '--push', 'origin', push_url], + cwd=checkoutdir) def get_hg(self, p): checkoutdir = os.path.join(self.subdir_root, p.get('directory')) revno = p.get('revision') |