aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/wrap
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2016-11-17 09:09:59 -0300
committerThibault Saunier <thibault.saunier@osg.samsung.com>2016-11-22 14:24:36 -0300
commit0ebf033f3175c8de13e7950a51efe8fe16b4b247 (patch)
treed7a76aba4625e50207b46229822154db183401fc /mesonbuild/wrap
parent28cd23ab6e1740918d70b28431c16fcba9f35501 (diff)
downloadmeson-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.py5
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')