From 86eb9e75835e3516073f19276f6769101b1df92f Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Fri, 3 Jun 2011 20:14:52 +0000 Subject: [PATCH] +x is bit 0, not 2. :( TBR=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/7112016 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@87844 0039d316-1c4b-4281-b951-d872f2087c98 --- patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch.py b/patch.py index 9c54924df..a7eef3f24 100644 --- a/patch.py +++ b/patch.py @@ -247,7 +247,7 @@ class FilePatchDiff(FilePatchBase): if match: mode = match.group(1) # Only look at owner ACL for executable. - if bool(int(mode[4]) & 4): + if bool(int(mode[4]) & 1): self.svn_properties.append(('svn:executable', '*')) # Handle "--- "