Skip to main content

SVN2Git: fatal: Cannot setup tracking information; starting point 'remotes/svn/dlb’ is not a branch

On a recent project, I’m integration SVN with Team Foundation Server GIT. This is not such an easy process and we hit some bumps down the road.

One tool I can recommend is SVN2Git, this is a great improvement over the standard git –svn  command you get out-of-the-box.

But even then you’ll probably get some errors, a problem that we encountered when executing SVN2Git was the following:

fatal: Cannot setup tracking information; starting point 'remotes/svn/dlb’ is not a branch

We were able to fix it by opening up the migration.rb file (SVN2Git is a ruby gem) under C:\Ruby\lib\ruby\gems\2.0.0\gems\svn2git-2.2.2\lib\svn2git (or a similar path) and removing the --track option from the following statement:

run_command("git branch --track \"#{branch}\" \"remotes/svn/#{branch}\"")