From: Ciaran Gultnieks Date: Sun, 8 Jan 2012 14:13:41 +0000 (+0000) Subject: Multiple corrections to previous commit X-Git-Tag: 0.1~1161 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=88322f583533e130f91ef295a7201b577bc01475;p=fdroidserver.git Multiple corrections to previous commit --- diff --git a/common.py b/common.py index 01d2114a..a4bb8fbb 100644 --- a/common.py +++ b/common.py @@ -86,10 +86,10 @@ class vcs: class vcs_git(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):