aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--authors.txt1
-rw-r--r--mesonbuild/wrap/wrap.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/authors.txt b/authors.txt
index 85d58c3..80c4bbb 100644
--- a/authors.txt
+++ b/authors.txt
@@ -66,3 +66,4 @@ Dima Krasner
Fabio Porcedda
Rodrigo Lourenço
Sebastian Stang
+Marc Becker
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py
index 7acbc76..b1efc13 100644
--- a/mesonbuild/wrap/wrap.py
+++ b/mesonbuild/wrap/wrap.py
@@ -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 '