mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Support binary changes when upstreaming web-platform-tests.
This commit is contained in:
parent
a388a76d82
commit
e963093416
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue