1

I am trying to migrate an svn repo to git. but i am stucked at

git svn clone https://svn.xxx.com/repos/xxx/trunk ~/temp 

which throws a "fatal: cannot exec 'git-svn': Not a directory" error

say i'm in directory ~/temp, even i run just "git svn", I got the same error message.

tried

man git-svn 

works well.

What's the problem please?

7
  • you need to give path to the original svn repo Commented May 9, 2012 at 9:15
  • is it a repos url or a file path? I tried both git svn clone svn.xxx.com/repos/xxx ~/temp and file:///Sites/xxx (my local svn repo) ~/temp. still the same error Commented May 9, 2012 at 9:18
  • what's your OS, how did you install git? Commented May 9, 2012 at 9:34
  • MAC OSX SL, git should be installed by following github's instructions Commented May 9, 2012 at 9:42
  • It's related to your PATH, check this answer Commented May 9, 2012 at 9:55

2 Answers 2

1

I would recommend you to use SubGit project (subgit.com) for migration. It preserves the most important SVN concepts (EOLs, ignores, tags, merges and so on) much better than git-svn. And also it keeps in sync SVN and Git repository so you can use both SVN and Git interfaces until you run

subgit uninstall <path/to/svn/repo> 
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your recommendation. we'll drop SVN once we've git settled :)
0

After doing these, problem seemed gone. and i got a new version git 1.7.3.4, not sure whether it was a problem of version 1.7.2

sudo port deactivate git-core sudo port install git-core +svn 

Refer to http://redlinesoftware.com/blog/2008/2/24/converting-subversion-repositories-to-git

But my git-svn and git-svnimport are busted! section

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.