summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 00:00:42 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 00:00:42 +0000
commit085bdc928b2ecdac1148b14539e079a85e96f4c3 (patch)
treec65098f119c93e78912f055988ddb633b2f24336 /PRESUBMIT.py
parentd7dfe814d7f3afa088da8c798397f3a414ced1a8 (diff)
downloadchromium_src-085bdc928b2ecdac1148b14539e079a85e96f4c3.zip
chromium_src-085bdc928b2ecdac1148b14539e079a85e96f4c3.tar.gz
chromium_src-085bdc928b2ecdac1148b14539e079a85e96f4c3.tar.bz2
Fix PRESUBMIT.py's path handling.
Review URL: http://codereview.chromium.org/118202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17574 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rwxr-xr-xPRESUBMIT.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index c2f0b77..f4f69db 100755
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -87,7 +87,7 @@ def LocalChecks(input_api, output_api, max_cols=80):
# Need to read the file ourselves since AffectedFile.NewContents()
# will normalize line endings.
- contents = ReadFile(path)
+ contents = ReadFile(f.AbsoluteLocalPath())
if '\r' in contents:
cr_files.append(path)