title: git-svn clone: unable to connect to a repository
body: <p>Environment information</p>
  
  <pre><code>~$ git --version
  git version 2.11.0
  ~$ git svn --version
  git-svn version 2.11.0 (svn 1.9.5)
  ~$ svn --version
  svn, version 1.9.5 (r1770682)
  </code></pre>
  
  <p>I'm attempting to clone an internally-hosted SVN repository, but I'm met with the following error:</p>
  
  <pre><code>~$ git svn clone http://[server]/svn/dev1
  Initialized empty Git repository in [~]/test/[root]/.git/
  Can't create session: Unable to connect to a repository at URL \
    'http://[server]/svn/[root]' at /usr/share/perl5/Git/SVN.pm line 148.
  </code></pre>
  
  <p>SVN checkout works as expected.  I've tried using the <code>svn://</code> protocol, but then it does not recognize <code>[server]</code> as a known hostname.</p>
  
  <p>If I separate <code>clone</code> into <code>init</code> and <code>fetch</code>, it's the <code>fetch</code> step that is failing.</p>
  
  <p>I should add that solutions like SmartGit are sadly not an option for me; I work at a company with >1000 devs so the cost to support one developer would be astronomical.</p>
  
  <hr>
  
  <p><code>SVN.pm:148</code> reads <code>my $ra = Git::SVN::Ra-&gt;new($url);</code> – from elsewhere in my research (I can't find the post anymore), I believe this is a wrapper around an SVN function.  Here's the definition of <code>Ra-&gt;new</code>:</p>
  
  <pre class="lang-perl prettyprint-override"><code>sub new {
          my ($class, $url) = @_;
          $url = canonicalize_url($url);
          return $RA if ($RA &amp;&amp; $RA-&gt;url eq $url);
  
          ::_req_svn();
  
          $RA = undef;
          my ($config, $baton, $callbacks) = prepare_config_once();
          my $self = SVN::Ra-&gt;new(url =&gt; $url, auth =&gt; $baton,
                                config =&gt; $config,
                                pool =&gt; SVN::Pool-&gt;new,
                                auth_provider_callbacks =&gt; $callbacks);
          $RA = bless $self, $class;
  
          # Make sure its canonicalized
          $self-&gt;url($url);
          $self-&gt;{svn_path} = $url;
          $self-&gt;{repos_root} = $self-&gt;get_repos_root;
          $self-&gt;{svn_path} =~ s#^\Q$self-&gt;{repos_root}\E(/|$)##;
          $self-&gt;{cache} = { check_path =&gt; { r =&gt; 0, data =&gt; {} },
                             get_dir =&gt; { r =&gt; 0, data =&gt; {} } };
  
          return $RA;
  }
  </code></pre>
  
  <p>I don't know Perl, so this is about as far as I can go on my own – I can't find the <code>SVN::Ra-&gt;new</code> this mentions.</p>