Apparently git ls-files shows the status of the index, which doesn't
[invirt/scripts/git-migration.git] / git-migrate
index 909a604..e968b62 100755 (executable)
@@ -27,7 +27,7 @@ def clonePackage(base, pkg):
         
     # Some of these repos have a rev where everything was deleted
     # as a result of the move. We don't want that rev to exist.
-    p = subprocess.Popen(['git', 'ls-files'],
+    p = subprocess.Popen(['git', 'ls-tree', 'HEAD'],
                          cwd='%s.git' % pkg,
                          stdout=subprocess.PIPE)
     p.wait()