Commit c7ec6ef8 authored by Rob Pike's avatar Rob Pike

case insensitive matching in CONTRIBUTORS file

R=rsc
https://golang.org/cl/157043
parent c51ee432
...@@ -957,7 +957,7 @@ def FindContributor(ui, repo, user, warn=True): ...@@ -957,7 +957,7 @@ def FindContributor(ui, repo, user, warn=True):
match = re.match(r"(.*) <(.*)>", line) match = re.match(r"(.*) <(.*)>", line)
if not match: if not match:
continue continue
if line == user or match.group(2) == user: if line == user or match.group(2).lower() == user.lower():
return match.group(2), line return match.group(2), line
if warn: if warn:
ui.warn("warning: cannot find %s in CONTRIBUTORS\n" % (user,)) ui.warn("warning: cannot find %s in CONTRIBUTORS\n" % (user,))
......
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