Inside git_sync_timestamps(), use git-diff-index for the same reason that
authorZac Medico <zmedico@gentoo.org>
Sun, 28 Dec 2008 20:37:04 +0000 (20:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 28 Dec 2008 20:37:04 +0000 (20:37 -0000)
repoman now uses it since bug #252727.

svn path=/main/trunk/; revision=12360

pym/_emerge/__init__.py

index c03e608250a8b77870944f8162c9ec0f924d1b08..70509ef108d286532093088aedea338f1763a5a5 100644 (file)
@@ -12281,7 +12281,7 @@ def git_sync_timestamps(settings, portdir):
                return 1
 
        args = [portage.const.BASH_BINARY, "-c",
-               "cd %s && git ls-files -m --with-tree=HEAD" % \
+               "cd %s && git diff-index --name-only --diff-filter=M HEAD" % \
                portage._shell_quote(portdir)]
        import subprocess
        proc = subprocess.Popen(args, stdout=subprocess.PIPE)