wrap: Allow specifying push URL in wrap files using git

pull/1059/head
Thibault Saunier 8 years ago
parent 28cd23ab6e
commit 0ebf033f31
  1. 5
      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')

Loading…
Cancel
Save