Commit 823259a1 authored by maruel@chromium.org's avatar maruel@chromium.org

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
parent e83dda05
......@@ -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__)):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment