Apparently git ls-files shows the status of the index, which doesn't
authorEvan Broder <broder@mit.edu>
Thu, 25 Dec 2008 04:33:26 +0000 (23:33 -0500)
committerEvan Broder <broder@mit.edu>
Thu, 25 Dec 2008 04:33:26 +0000 (23:33 -0500)
change after git reset --soft

svn path=/trunk/scripts/git-migration/; revision=1891

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.
         
     # 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()
                          cwd='%s.git' % pkg,
                          stdout=subprocess.PIPE)
     p.wait()