Do work from correct cwd
authorGreg Brockman <gdb@mit.edu>
Tue, 6 Jul 2010 04:28:15 +0000 (00:28 -0400)
committerGreg Brockman <gdb@mit.edu>
Tue, 6 Jul 2010 04:28:15 +0000 (00:28 -0400)
svn path=/trunk/packages/invirt-dev/; revision=3041

python/invirt/builder.py

index b3aa08f..c800cf8 100644 (file)
@@ -146,7 +146,8 @@ def validateBuild(pocket, package, commit):
 
         # Almost by definition, A is a fast-forward of B if B..A is
         # empty
-        if not c.captureOutput(['git', 'rev-list', '%s..%s' % (commit, branch)]):
+        if not c.captureOutput(['git', 'rev-list', '%s..%s' % (commit, branch)],
+                               cwd=package_repo):
             raise InvalidBuild('New commit %s of %s is not a fast-forward of'
                                'commit currently in pocket %s' %
                                (commit, package, pocket))