Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: appengine/findit/common/git_repository.py

Issue 838003004: [Findit] Add three sub-pipelines to analyze build failure. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/findit/common/git_repository.py
diff --git a/appengine/findit/common/git_repository.py b/appengine/findit/common/git_repository.py
index 0265729f1ea73223898f803cf9f1e9bf529a8cc3..e227945b7ba5523ee75a324b435153b32739e749 100644
--- a/appengine/findit/common/git_repository.py
+++ b/appengine/findit/common/git_repository.py
@@ -59,7 +59,10 @@ def NormalizeEmail(email):
Some email is like: person@@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538.
"""
parts = email.split('@')
- return '@'.join(parts[:-1])
+ if len(parts) > 2:
+ return '@'.join(parts[0:2])
+ else:
+ return email
class GitRepository(Repository):

Powered by Google App Engine
This is Rietveld 408576698