PristineTar: make sure we set the current working directory
authorGuido Günther <agx@sigxcpu.org>
Sat, 28 Jan 2012 20:08:34 +0000 (21:08 +0100)
committerGuido Günther <agx@sigxcpu.org>
Mon, 30 Jan 2012 11:34:49 +0000 (12:34 +0100)
otherwise this will fail when invoked from outside the git tree

gbp/deb/pristinetar.py

index 4478ad4..56bff6a 100644 (file)
@@ -27,7 +27,7 @@ class PristineTar(Command):
 
     def __init__(self, repo):
         self.repo = repo
-        super(PristineTar, self).__init__(self.cmd)
+        super(PristineTar, self).__init__(self.cmd, cwd=repo.path)
 
     def has_commit(self, package, version, comp_type=None):
         """