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

Unified Diff: gclient.py

Issue 7104009: Modify "gclient config url" to act a little bit more like "git clone url". If the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 9 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
===================================================================
--- gclient.py (revision 87376)
+++ gclient.py (working copy)
@@ -990,6 +990,8 @@
base_url = args[0].rstrip('/')
if not options.name:
name = base_url.split('/')[-1]
+ if name.endswith('.git'):
+ name = name[:-4]
else:
# specify an alternate relpath for the given URL.
name = options.name
« 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