Commit de754ac6 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix a coding error that was introduced in 26423.

"file_list = file_list or []" would create a new empty list when an empty list is passed as a parameter, ditching the output parameter.

TEST=hooks are now run on gclient sync
BUG=none

Review URL: http://codereview.chromium.org/208010


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26461 0039d316-1c4b-4281-b951-d872f2087c98
parent c2c78f7f
......@@ -51,8 +51,8 @@ class SCMWrapper(object):
def RunCommand(self, command, options, args, file_list=None):
# file_list will have all files that are modified appended to it.
file_list = file_list or []
if file_list is None:
file_list = []
commands = {
'cleanup': self.cleanup,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment