From: Ciaran Gultnieks Date: Sun, 8 Jan 2012 14:16:42 +0000 (+0000) Subject: Another correction X-Git-Tag: 0.1~1160 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=98263a429db5d48c5c3bf1772e4d8aa26e7b7a0d;p=fdroidserver.git Another correction --- diff --git a/common.py b/common.py index a4bb8fbb..6d3e8e83 100644 --- a/common.py +++ b/common.py @@ -130,10 +130,10 @@ class vcs_git(vcs): class vcs_gitsvn(vcs): def checkrepo(self): - p = subprocess.Popen('git', 'rev-parse', '--show-toplevel', - stdout=subprocess.PIPE) + p = subprocess.Popen(['git', 'rev-parse', '--show-toplevel'], + stdout=subprocess.PIPE, cwd=self.local) result = p.communicate()[0].rstrip() - if not self.local.endswith(result): + if not result.endswith(self.local): raise VCSException('Repository mismatch') def clone(self):