Fix directory context for git wrap check

pull/1429/merge
Marc Becker 8 years ago committed by Jussi Pakkanen
parent a61e41b1d2
commit 92d18b9256
  1. 1
      authors.txt
  2. 2
      mesonbuild/wrap/wrap.py

@ -66,3 +66,4 @@ Dima Krasner
Fabio Porcedda
Rodrigo Lourenço
Sebastian Stang
Marc Becker

@ -129,7 +129,7 @@ class Resolver:
is_there = os.path.isdir(checkoutdir)
if is_there:
try:
subprocess.check_call(['git', 'rev-parse'])
subprocess.check_call(['git', 'rev-parse'], cwd=checkoutdir)
is_there = True
except subprocess.CalledProcessError:
raise RuntimeError('%s is not empty but is not a valid '

Loading…
Cancel
Save