Thursday, March 20, 2014

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}\"")

1 comment:

Tendaxes Hobisons said...

This market is normally heaped with looks after built from naff, alloy and manipulated precious metal. The particular wristwatches for decades possesses experimented with many different resources in addition to for example others favors ceramic for a few job applications despite the fact that fully ceramic wristwatches will always be exceptional http://www.replicabestsale.co.uk. Considering that launch of the very most to start with check out, they may have put together after the first structure constructing countless fashions in addition to concludes which usually increases his or her arrive at to the market place when outstanding a fact for their unique vision- an extra sport activity watch for an extremely scary consumer. The fundamental watch happens to be enlarged towards have a tourbillion, a fabulous chronograph, an important never ending schedule, a good remarkable complications, and better!