Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git-svn stops with no error message when trying to clone

Tags:

git

git-svn

I'm running the git-svn clone command against the subversion server as follows:

git svn clone svn: --no-metadata -A users.txt --stdlayout ~/temp

The message 'Checked through r0000' appears and the revision number increases up to r8200 and then pauses. After about 30 seconds the commands prompt re-appears and I have the makings of a git repository in the temp directory but it contains no actual source code files.

How can I get more information on what is happening?

I have tried the git-svn from both a windows and a linux client. On windows it is version 1.8.1, on linux it is 1.7.10.4

like image 951
David J Avatar asked Mar 18 '13 11:03

David J


People also ask

How do I clone a Git repository in SVN?

# Clone a repo with standard SVN directory layout (like git clone): git svn clone http://svn.example.com/project --stdlayout --prefix svn/ # Or, if the repo uses a non-standard directory layout: git svn clone http://svn.example.com/project -T tr -b branch -t tag --prefix svn/ # View all branches and tags you have ...

How long does Git SVN clone take?

Beware that the conversion process can take a significant amount of time for larger repositories, even when cloning from a local SVN repository. As a benchmark, converting a 400MB repository with 33,000 commits on main took around 12 hours to complete.

Can I use Git and SVN at the same time?

No interaction between them. Just ignore the . git folder for SVN and the . svn folder for Git and you should be fine.


1 Answers

I had the same error/behaviour and eventually i realized that the svn path i used in my command included the \trunk folder. Once i used the parent folder instead it started to work.

like image 55
e-master Avatar answered Oct 24 '22 10:10

e-master