Modify "gclient config url" to act a little bit more like "git clone url". If the

url is pointing to a git repo, the name of the directory created on disk will not
contain the .git suffix.
Review URL: http://codereview.chromium.org/7104009

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@87492 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
nsylvain@google.com 14 years ago
parent b3cec90859
commit 12649efc71

@ -990,6 +990,8 @@ URL.
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

Loading…
Cancel
Save