Skip to content

Commit

Permalink
Merge pull request #8684 from brave/getChange_getAffectedFiles
Browse files Browse the repository at this point in the history
Fix 8683: Use GetAffectedFiles instead of GetChange
  • Loading branch information
mihaiplesa authored and jumde committed Mar 13, 2020
1 parent 33bb925 commit 8083f10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ def main(args):
os.chdir(settings.GetRoot())
try:
cl = git_cl.Changelist()
change = cl.GetChange(git_common.get_or_create_merge_base(cl.GetBranch(), options.base_branch), "")
files = [f.LocalPath() for f in change.AffectedFiles()]
files = cl.GetAffectedFiles(git_common.get_or_create_merge_base(cl.GetBranch(), options.base_branch))
if not files:
print('Cannot lint an empty CL')
return 0
Expand Down

0 comments on commit 8083f10

Please sign in to comment.