-invirt-dev (0.1.20) precise; urgency=low
+invirt-dev (0.1.22) precise; urgency=low
* Fixed formatting in the README
-- Steven Valdez <dvorak42@mit.edu> Wed, 20 Mar 2013 02:37:34 -0400
+invirt-dev (0.1.21) unstable; urgency=low
+
+ * The "git archive" command broke on recent Git. Replace
+ --remote=file: with the standard --git-dir, which works.
+
+ -- Greg Price <price@mit.edu> Sat, 09 Mar 2013 17:06:42 -0500
+
+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 <price@mit.edu> 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
import tempfile
import uuid
+from invirt.config import structs as config
+import invirt.common as c
import invirt.builder as b
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:
workdir = tempfile.mkdtemp(prefix=("b%d-" % build_id))
try:
p_archive = subprocess.Popen(
- ['git', 'archive',
- '--remote=file://%s' % b.getRepo(package),
+ ['git', '--git-dir=%s' % (b.getRepo(package),),
+ 'archive',
'--prefix=%s/' % package,
commit,
],