Jinzhao Huo
Jinzhao Huo

Reputation: 857

git-svn not working, reporting "fatal: cannot exec 'git-svn': Not a directory"

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?

Upvotes: 1

Views: 389

Answers (2)

Dmitry Pavlenko
Dmitry Pavlenko

Reputation: 8958

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>

Upvotes: 1

Jinzhao Huo
Jinzhao Huo

Reputation: 857

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

Upvotes: 0

Related Questions