What does this svn2git error mean?

后端 未结 5 1505
一向
一向 2020-12-30 20:16

I am trying to import my repository from svn to git using svn2git, but it seems like it\'s failing when it hits a branch. What\'s the problem?

Found possible         


        
5条回答
  •  猫巷女王i
    2020-12-30 20:58

    I was following some svn to git instructions when I ran into the same error message. The error occurred when I ran this command:

    git svn clone file:///pathto/repo /pathto/new-git-repo –-no-metadata -A authors.txt -t tags -b branches -T trunk
    

    After the error occurred, I edited the .git/config-file as follows:

    tags = tags/*:refs/remotes/svn/tags/*
    branches = branches/*:refs/remotes/svn/*
    

    ->

    tags = tags/*:refs/remotes/svn/tags/*
    branches = branches/*:refs/remotes/svn/branches/*
    

    I.e., I just formatted the "braches" line to be similar to the "tags" line. Then I ran the command again. The process produced a valid git repo with remote branches.

提交回复
热议问题