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

svn2git does not create tags when nested in a sub directory #67

Open
onevision opened this issue Jun 10, 2012 · 4 comments
Open

svn2git does not create tags when nested in a sub directory #67

onevision opened this issue Jun 10, 2012 · 4 comments

Comments

@onevision
Copy link

My SVN repo is structured as follows

Project/branch/trunk
...
Project/tags
  1.0.0
  1.0.1
  1.0.2
  1.1.0
  2.0.0

I run the following command to create the git repo

svn2git http://svn.example.com/path/to/repo --trunk Project/branch/trunk --tags Project/tags --nobranches

svn2git imports the trunk fine, however all the tags are missing

$ git branch
* master
  trunk@1387
$  git tag -l
[ empty ]
@drewdeponte
Copy link
Collaborator

What is output if you do git tag -a

?

On Jun 10, 2012, at 1:11 PM, Richard [email protected] wrote:

My SVN repo is structured as follows

Project/branch/trunk
...
Project/tags
 1.0.0
 1.0.1
 1.0.2
 1.1.0
 2.0.0

I run the following command to create the git repo

svn2git http://svn.example.com/path/to/repo --trunk Project/branch/trunk --tags Project/tags --nobranches

svn2git imports the trunk fine, however all the tags are missing

$ git branch
* master
 trunk@1387
$  git tag -l
[ empty ]

Reply to this email directly or view it on GitHub:
#67

@onevision
Copy link
Author

$ git tag -a test -m "testing"
$ git tag -l
test

@kjantzer
Copy link

kjantzer commented Apr 8, 2013

I have the same issue.

@djessup
Copy link

djessup commented Jul 30, 2013

I've also been having issues with importing tags. I have a single SVN repo with multiple folders (one per project) and I'm running svn2git along the lines of:
svn2git svn+ssh://repo.example.org/svn/project-folder --verbose

This works fine and I can see the tags being detected properly and added to the new Git repo, however when the import has finished and I try git tag -l there is nothing there.

I've been able to "fix" the issue by modifying the svn2git gem and commenting out migration.rb:239 run_command("git branch -d -r \"#{escape_quotes(tag)}\"")

This seems to produce the desired results, but I'm not sure if I'm leaving a mess behind in the Git repo by doing so...?

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

3 participants