Fix gclient config with a trailing backslash.

Review URL: http://codereview.chromium.org/118160

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@17487 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient.py b/gclient.py
index 694435c..76373f0 100755
--- a/gclient.py
+++ b/gclient.py
@@ -1514,8 +1514,8 @@
   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]