From 2e5c697f1d44742d59360938230b198805f43b48 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 9 Jun 2014 09:22:21 -0500 Subject: [PATCH] Use correct cwd Signed-off-by: Zack Cerza --- teuthology/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/worker.py b/teuthology/worker.py index cdd76483cca7f..0b016002c3b74 100644 --- a/teuthology/worker.py +++ b/teuthology/worker.py @@ -92,7 +92,7 @@ def fetch_teuthology_branch(path, branch='master'): lock.acquire() try: if os.path.isdir(path): - p = subprocess.Popen('git status', shell=True) + p = subprocess.Popen('git status', shell=True, cwd=path) if p.wait() == 128: log.info("Repo at %s appears corrupt; removing", branch) -- 2.39.5