From: Greg Price Date: Sat, 9 Mar 2013 21:16:15 +0000 (-0500) Subject: Support getting Git commits from elsewhere, for xvm-dev X-Git-Tag: 0.1.25_glasgall1~11 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/commitdiff_plain/e84d19305a4744c77198d718c5cb49338a51ae16?hp=e1f7b2844093a084076a7e173b410a5d31ff6674 Support getting Git commits from elsewhere, for xvm-dev Requires manually setting up the clones in /srv/git/invirt/packages/, with --mirror=fetch remotes. Currently expecting this to be a temporary setup anyway. --- diff --git a/debian/changelog b/debian/changelog index b7add8e..e931861 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +invirt-dev (0.1.20) unstable; urgency=low + + * Support getting Git commits from elsewhere, for xvm-dev + (Requires manually setting up the clones in /srv/git/invirt/packages/, + with --mirror=fetch remotes. Currently expecting this to be a + temporary setup anyway.) + + -- Greg Price Sat, 09 Mar 2013 16:11:23 -0500 + invirt-dev (0.1.19) unstable; urgency=low * Add a repo_access configuration hook to grant VCS access to diff --git a/invirt-submit-build b/invirt-submit-build index 4bed2ee..f202c3d 100755 --- a/invirt-submit-build +++ b/invirt-submit-build @@ -24,6 +24,8 @@ import sys import tempfile import uuid +from invirt.config import structs as config +import invirt.common as c import invirt.builder as b @@ -43,6 +45,8 @@ def main(): try: # TODO: clean up this interface. b.ensureValidPackage(package) + if config.build.get('mirror'): + c.captureOutput(['git', 'fetch'], cwd=b.getRepo(package)) commit = b.canonicalize_commit(package, commit) b.validateBuild(pocket, package, commit) except b.InvalidBuild, e: