mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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):
|
def export_patch(self, path=None):
|
||||||
"""Convert a commit in the tree to a Patch with the bug number and
|
"""Convert a commit in the tree to a Patch with the bug number and
|
||||||
reviewer stripped from the message"""
|
reviewer stripped from the message"""
|
||||||
args = ["%s^..%s" % (self.sha1, self.sha1)]
|
args = ["--binary", self.sha1]
|
||||||
if path is not None:
|
if path is not None:
|
||||||
args.append("--")
|
args.append("--")
|
||||||
args.append(path)
|
args.append(path)
|
||||||
|
|
||||||
diff = self.git("diff", *args)
|
diff = self.git("show", *args)
|
||||||
|
|
||||||
return Patch(self.author, self.email, self.message, diff)
|
return Patch(self.author, self.email, self.message, diff)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue