Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message: "svn2git warning: Tracking remote SVN branches is deprecated." #322

Open
canaveral1208 opened this issue Apr 7, 2023 · 1 comment

Comments

@canaveral1208
Copy link

canaveral1208 commented Apr 7, 2023

Hi, @nirvdrum.

My SVN repo has the following root layout (it's a legacy project I have to work on it):

-----------------------
Project
    ... (a lot of docs subfolders here)
System
    ... (the trunk code here)
tags
    ... (the tags here)
-----------------------

I used the following command to convert it to Git:

svn2git file:///svn.example.com/path/to/repo --trunk System --branches Project --tags tags

When the conversion starts at the "Project" folder, it suddenly stops with the following error message:

********************************************************************
svn2git warning: Tracking remote SVN branches is deprecated.
In a future release local branches will be created without tracking.
If you must resync your branches, run: svn2git --rebase
********************************************************************
command failed:

By the way, do you know what I'm doing wrong?

Thanks in advance for your reply.

Best regards,
Everton

@brittyazel
Copy link

It's a newer version of Git conflicting with this tool. This tool hasn't been updated in many years. To get around it I was able to do:

git branch "<branch-name>" "remotes/svn/<branch-name>"
followed by
svn2git --rebase

I did that over and over until all the branches were fixed. Likewise, if you named your main branch 'main' instead of 'master' you will have to rename your main branch to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@brittyazel @canaveral1208 and others