From: Evan Broder Date: Thu, 25 Dec 2008 04:33:26 +0000 (-0500) Subject: Apparently git ls-files shows the status of the index, which doesn't X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/git-migration.git/commitdiff_plain/bfacfe92eefc2420f3b7e81d25cf39e65d71e7c8?hp=492d83fe61f1afa3a14345414b38e6f13b42e6a6 Apparently git ls-files shows the status of the index, which doesn't change after git reset --soft svn path=/trunk/scripts/git-migration/; revision=1891 --- diff --git a/git-migrate b/git-migrate index 909a604..e968b62 100755 --- a/git-migrate +++ b/git-migrate @@ -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()