mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Cherry-pick https://github.com/web-platform-tests/wpt/pull/15932 from upstream.
This commit is contained in:
parent
cc7e21000a
commit
17e04fb255
1 changed files with 2 additions and 2 deletions
|
@ -96,8 +96,8 @@ class Git(object):
|
|||
cmd = ["ls-tree", "-r", "-z", "HEAD"]
|
||||
local_changes = self._local_changes()
|
||||
for result in self.git(*cmd).split("\0")[:-1]:
|
||||
rel_path = result.rsplit("\t", 1)[-1]
|
||||
hash = result.split(" ", 3)[2]
|
||||
data, rel_path = result.rsplit("\t", 1)
|
||||
hash = data.split(" ", 3)[2]
|
||||
if rel_path in local_changes:
|
||||
contents = self._show_file(rel_path)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue