pre-upload: fix json lint to read files from the commit

We shouldn't read files off the current disk, but get all the content
out of git.  This helps with stacked changes and dirty trees.

BUG=None
TEST=unittests pass

Change-Id: I462481aac7711b6994c2aca99253aa0b738157e0
Reviewed-on: https://chromium-review.googlesource.com/849137
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
2 files changed