From be31c43fa70a19266b71271420b93b3bec596478 Mon Sep 17 00:00:00 2001 From: "jparent@chromium.org" Date: Wed, 8 May 2013 00:04:58 +0000 Subject: [PATCH] Images are binaries too, yo. Make upload.py treat images as binaries, so they upload correctly and display in Reitveld. BUG=227346 Review URL: https://chromiumcodereview.appspot.com/14820015 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@198833 0039d316-1c4b-4281-b951-d872f2087c98 --- third_party/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/upload.py b/third_party/upload.py index 895c8f594..aaf843fb8 100755 --- a/third_party/upload.py +++ b/third_party/upload.py @@ -1595,8 +1595,8 @@ class GitVCS(VersionControlSystem): else: status = "M" - is_binary = self.IsBinaryData(base_content) is_image = self.IsImage(filename) + is_binary = self.IsBinaryData(base_content) or is_image # Grab the before/after content if we need it. # Grab the base content if we don't have it already.