diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 152798501fd..3376f073640 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -957,7 +957,7 @@ def FindContributor(ui, repo, user, warn=True): match = re.match(r"(.*) <(.*)>", line) if not match: continue - if line == user or match.group(2) == user: + if line == user or match.group(2).lower() == user.lower(): return match.group(2), line if warn: ui.warn("warning: cannot find %s in CONTRIBUTORS\n" % (user,))