From 17e04fb255e3415a6b0f3d9b42ff28e73ff4f2e7 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 20 Mar 2019 10:11:55 -0400 Subject: [PATCH] Cherry-pick https://github.com/web-platform-tests/wpt/pull/15932 from upstream. --- tests/wpt/web-platform-tests/tools/manifest/vcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/wpt/web-platform-tests/tools/manifest/vcs.py b/tests/wpt/web-platform-tests/tools/manifest/vcs.py index 0b3ba9aac2f..676e53f6785 100644 --- a/tests/wpt/web-platform-tests/tools/manifest/vcs.py +++ b/tests/wpt/web-platform-tests/tools/manifest/vcs.py @@ -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: