From: Greg Brockman Date: Tue, 6 Jul 2010 04:28:15 +0000 (-0400) Subject: Do work from correct cwd X-Git-Tag: 0.1.5~11 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/commitdiff_plain/94bf6022689c29a7e27df0710f0b1d63d578038d Do work from correct cwd svn path=/trunk/packages/invirt-dev/; revision=3041 --- diff --git a/python/invirt/builder.py b/python/invirt/builder.py index b3aa08f..c800cf8 100644 --- a/python/invirt/builder.py +++ b/python/invirt/builder.py @@ -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))