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

Unified Diff: gclient.py

Issue 118160: Fix gclient config with a trailing backslash. (Closed)
Patch Set: Created 11 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: gclient.py
diff --git a/gclient.py b/gclient.py
index 694435cf5397cd21e4dda602002305dec73f19dc..76373f084cee611ce8bedb18d0504d4bd5f457b0 100755
--- a/gclient.py
+++ b/gclient.py
@@ -1514,8 +1514,8 @@ def DoConfig(options, args):
else:
# TODO(darin): it would be nice to be able to specify an alternate relpath
# for the given URL.
- base_url = args[0]
- name = args[0].split("/")[-1]
+ base_url = args[0].rstrip('/')
+ name = base_url.split("/")[-1]
safesync_url = ""
if len(args) > 1:
safesync_url = args[1]
« 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