X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/1df2c5ee4af289b6c68d28b021cceaacecb61b61..7bc450adac529e07b594f2b38d268c056563ac9e:/invirtibuilder diff --git a/invirtibuilder b/invirtibuilder index aa70b53..24861f5 100755 --- a/invirtibuilder +++ b/invirtibuilder @@ -288,11 +288,11 @@ def build(): try: db.failed_stage = 'validating job' - src = b.validateBuild(pocket, package, commit) # Don't expand the commit in the DB until we're sure the user # isn't trying to be tricky. - db.commit = commit = c.captureOutput(['git', 'rev-parse', commit], - cwd=b.getRepo(package)).strip() + b.ensureValidPackage(package) + db.commit = commit = b.canonicalize_commit(package, commit) + src = b.validateBuild(pocket, package, commit) db.version = str(b.getVersion(package, commit))