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

Ignore case in tree status check

BUG=chromium-os:2308

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@48488 0039d316-1c4b-4281-b951-d872f2087c98
parent ce921b20
......@@ -350,7 +350,7 @@ def CheckTreeIsOpen(input_api, output_api, url, closed):
connection = input_api.urllib2.urlopen(url)
status = connection.read()
connection.close()
if input_api.re.match(closed, status):
if input_api.re.match(closed, status, input_api.re.IGNORECASE):
long_text = status + '\n' + url
return [output_api.PresubmitError('The tree is closed dude!',
long_text=long_text)]
......
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