{"thread":{"id":"38101","subject":"Problems cloning existing (probably old) svn repo","startedAt":"2014-12-03T17:51:13Z","lastAt":"2014-12-03T22:15:32Z","messageCount":2,"participants":["Cody Goodman","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"252966","messageId":"CADq_+R2t+ZprZj83TKJaWDpTtF+LwSZPTPc8vOYuDz9gkLDS-w@mail.gmail.com","threadId":"38101","inReplyTo":null,"subject":"Problems cloning existing (probably old) svn repo","fromName":"Cody Goodman","fromEmail":"codygman.consulting@gmail.com","sentAt":"2014-12-03T17:51:13Z","receivedAt":"2014-12-03T17:51:13Z","isPatch":false,"sender":{"key":"codygman.consulting@gmail.com","avatar":null},"body":"I recently got this error when trying to git svn clone an existing repo:\n\nCouldn't open a repository: Unable to connect to a repository at URL\n'file:///home/cody/work/SmartPay': Unable to open an ra_local session\nto URL: Unable to open repository 'file:///home/cody/work/SmartPay' at\n/usr/share/perl5/Git/SVN.pm line\n\n\nThen I created my own new svn repo to ensure my install of svn-git was working:\n\ncody@cody-XPS-L521X:~/svn-repos$ svnadmin create testrepo\ncody@cody-XPS-L521X:~/svn-repos$ svnserve -d -r /home/cody/svn-repos\ncody@cody-XPS-L521X:~/svn-repos$ cd /tmp\ncody@cody-XPS-L521X:/tmp$ git svn clone svn://localhost/testrepo\nInitialized empty Git repository in /tmp/testrepo/.git/\n\nSo I've verified my install is working and I understand how to clone a\nlocal repo.\n\nWhat svn repo versions is git-svn compatible with? If the svnadmin\nversion used to create the existing repo I want to clone was very old\nis that what is giving me the error? Is there a workaround?\n\nHow should I proceed?\n"},{"id":"252998","messageId":"20141203221532.GA30452@dcvr.yhbt.net","threadId":"38101","inReplyTo":"CADq_+R2t+ZprZj83TKJaWDpTtF+LwSZPTPc8vOYuDz9gkLDS-w@mail.gmail.com","subject":"Re: Problems cloning existing (probably old) svn repo","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2014-12-03T22:15:32Z","receivedAt":"2014-12-03T22:15:32Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Cody Goodman <codygman.consulting@gmail.com> wrote:\n> I recently got this error when trying to git svn clone an existing repo:\n> \n> Couldn't open a repository: Unable to connect to a repository at URL\n> 'file:///home/cody/work/SmartPay': Unable to open an ra_local session\n> to URL: Unable to open repository 'file:///home/cody/work/SmartPay' at\n> /usr/share/perl5/Git/SVN.pm line\n\nWhat happens when you try using the plain SVN client?\n\n\tsvn co file:///home/cody/work/SmartPay foo\n\n> Then I created my own new svn repo to ensure my install of svn-git was working:\n> \n> cody@cody-XPS-L521X:~/svn-repos$ svnadmin create testrepo\n> cody@cody-XPS-L521X:~/svn-repos$ svnserve -d -r /home/cody/svn-repos\n> cody@cody-XPS-L521X:~/svn-repos$ cd /tmp\n> cody@cody-XPS-L521X:/tmp$ git svn clone svn://localhost/testrepo\n> Initialized empty Git repository in /tmp/testrepo/.git/\n> \n> So I've verified my install is working and I understand how to clone a\n> local repo.\n> \n> What svn repo versions is git-svn compatible with? If the svnadmin\n> version used to create the existing repo I want to clone was very old\n> is that what is giving me the error? Is there a workaround?\n\ngit-svn uses the SVN Perl bindings which are wrappers around libsvn,\nthe same library the regular \"svn\" command uses.  So if it works\nwith plain svn, it should work with git-svn.\n\n> How should I proceed?\n\nI'd make sure the plain SVN-only tools work on your repo, first.\nPerhaps try \"svnadmin dump\" and \"svnadmin load\", too.\n"}]}