From e963093416346bb72307f9a070de2792307afbce Mon Sep 17 00:00:00 2001 From: James Graham Date: Wed, 13 May 2015 16:19:06 +0100 Subject: [PATCH] Support binary changes when upstreaming web-platform-tests. --- tests/wpt/update/tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/wpt/update/tree.py b/tests/wpt/update/tree.py index 60459e758b1..256cb35292e 100644 --- a/tests/wpt/update/tree.py +++ b/tests/wpt/update/tree.py @@ -173,12 +173,12 @@ class GeckoCommit(Commit): def export_patch(self, path=None): """Convert a commit in the tree to a Patch with the bug number and reviewer stripped from the message""" - args = ["%s^..%s" % (self.sha1, self.sha1)] + args = ["--binary", self.sha1] if path is not None: args.append("--") args.append(path) - diff = self.git("diff", *args) + diff = self.git("show", *args) return Patch(self.author, self.email, self.message, diff)