A few minor tweaks.

pull/57/head
Jussi Pakkanen 10 years ago
parent 29fa1dd522
commit faa623eb93
  1. 2
      manual tests/3 git wrap/meson.build
  2. 7
      wrap.py

@ -6,3 +6,5 @@ exe = executable('gitprog', 'prog.c',
include_directories : sp.get_variable('subproj_inc'),
link_with : sp.get_variable('subproj_lib'),
)
test('maintest', exe)

@ -69,9 +69,10 @@ class Resolver:
if revno.lower() == 'head':
subprocess.check_call(['git', 'pull'], cwd=checkoutdir)
else:
subprocess.check_call(['git', 'fetch'], cwd=checkoutdir)
subprocess.check_call(['git', 'checkout', revno],
cwd=checkoutdir)
if subprocess.call(['git', 'checkout', revno], cwd=checkoutdir) != 0:
subprocess.check_call(['git', 'fetch'], cwd=checkoutdir)
subprocess.check_call(['git', 'checkout', revno],
cwd=checkoutdir)
else:
subprocess.check_call(['git', 'clone', p.get('url'), p.get('directory')],
cwd=self.subdir_root)

Loading…
Cancel
Save