Fix "git archive" command in invirtibuilder
authorGreg Price <price@mit.edu>
Sat, 9 Mar 2013 22:07:49 +0000 (17:07 -0500)
committerGreg Price <price@mit.edu>
Sat, 9 Mar 2013 22:07:49 +0000 (17:07 -0500)
debian/changelog
invirtibuilder

index e931861..c98533e 100644 (file)
@@ -1,3 +1,10 @@
+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
index bf3b499..fd1417f 100755 (executable)
@@ -287,8 +287,8 @@ def packageWorkdir(package, commit, build_id):
     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,
              ],