From 823259a1bfe5639c7a1e7fd18b45ec87ab20a791 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Thu, 23 Feb 2012 21:01:19 +0000 Subject: [PATCH] Remove a check that would break with pinned revision using ssh protocol with a user name in the url An example use case is github over ssh at a pinned revision. R=petermayo@chromium.org BUG=115202 TEST= Review URL: http://codereview.chromium.org/9443025 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@123325 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gclient.py b/gclient.py index 759589311..5757d4229 100644 --- a/gclient.py +++ b/gclient.py @@ -168,8 +168,6 @@ class DependencySettings(GClientKeywords): if isinstance(self._url, basestring): # urls are sometime incorrectly written as proto://host/path/@rev. Replace # it to proto://host/path@rev. - if self._url.count('@') > 1: - raise gclient_utils.Error('Invalid url "%s"' % self._url) self._url = self._url.replace('/@', '@') elif not isinstance(self._url, (self.FromImpl, self.FileImpl, None.__class__)):