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

Unified Diff: trychange.py

Issue 2336002: Some weirdo folks have @ in their USER environment variable. Strip it off. (Closed)
Patch Set: Created 10 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trychange.py
diff --git a/trychange.py b/trychange.py
index 164c4c6b1ea8c918361e492b6ce0766e3640a426..16e1fedfb07d6d07b66bfc6c91b78f6bf43e3131 100755
--- a/trychange.py
+++ b/trychange.py
@@ -602,6 +602,9 @@ def TryChange(argv,
logging.debug(argv)
+ # Strip off any @ in the user, otherwise svn gets confused.
+ options.user = options.user.split('@', 1)[0]
+
if options.rietveld_url:
# Try to extract the review number if possible and fix the protocol.
if not '://' in options.rietveld_url:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698