Ignore:
Timestamp:
Jul 6, 2010, 12:27:41 AM (14 years ago)
Author:
gdb
Message:

Use the expanded commit name internally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/invirtibuilder

    r3032 r3035  
    289289        try:
    290290            db.failed_stage = 'validating job'
    291             src = b.validateBuild(pocket, package, commit)
    292291            # Don't expand the commit in the DB until we're sure the user
    293292            # isn't trying to be tricky.
    294             db.commit = commit = c.captureOutput(['git', 'rev-parse', commit],
    295                                                  cwd=b.getRepo(package)).strip()
     293            b.ensureValidPackage(package)
     294            db.commit = commit = b.canonicalize_commit(package, commit)
     295            src = b.validateBuild(pocket, package, commit)
    296296
    297297            db.version = str(b.getVersion(package, commit))
Note: See TracChangeset for help on using the changeset viewer.