Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #337 from rakuco/backport-checkperms-fix
Browse files Browse the repository at this point in the history
[Backport] PRESUBMIT: Determine checkperms.py's path using input_api.
  • Loading branch information
Raphael Kubo da Costa committed Apr 4, 2016
2 parents 8222364 + 123d118 commit c9cd89c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,10 @@ def _CheckFilePermissions(input_api, output_api):
"""Check that all files have their permissions properly set."""
if input_api.platform == 'win32':
return []
args = [input_api.python_executable, 'tools/checkperms/checkperms.py',
checkperms_tool = input_api.os_path.join(
input_api.PresubmitLocalPath(),
'tools', 'checkperms', 'checkperms.py')
args = [input_api.python_executable, checkperms_tool,
'--root', input_api.change.RepositoryRoot()]
for f in input_api.AffectedFiles():
args += ['--file', f.LocalPath()]
Expand Down

0 comments on commit c9cd89c

Please sign in to comment.