The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

SVN to Git migration - no tags migrated to git remote

Wanderley Teixeira
March 16, 2020

I am running through the Atlassian Migration and all seems ok until I push the tags. No tags are pushed to remote. 

If I do `git branch -a` I see the tags:

...
remotes/tags/example-tag-1.0.0-002
remotes/tags/example-tag-2.0.0-020
...

 I execute:

git push origin --tags
Everything up-to-date

No tags are in my remote repo. Any thoughts on what I am doing wrong? 

My `.git/config`

[svn-remote "svn"]
url = https://xx.xx.xx.xx/svn/products
fetch = example/trunk:refs/remotes/trunk
branches = example/branches/*:refs/remotes/*
tags = example/tags/{example-tag-1.0.0-002,example-tag-2.0.0-020}:refs/remotes/tags/*
# java -Dfile.encoding=utf-8 -jar ../../../svn-migration-scripts.jar clean-git --force

# Creating annotated tags...
Creating annotated tag 'example-tag-1.0.0-002' at refs/remotes/tags/example-tag-1.0.0-002.
Creating annotated tag 'example-tag-2.0.0-020' at refs/remotes/tags/example-tag-2.0.0-020.

# Creating local branches...
Creating the local branch 'RELEASE-1.0.0' for Subversion branch 'refs/remotes/RELEASE-1.0.0'.
Creating the local branch 'RELEASE-2.0.0' for Subversion branch 'refs/remotes/RELEASE-2.0.0'.
Creating the local branch 'origin/RELEASE-1.0.0' for Subversion branch 'refs/remotes/origin/RELEASE-1.0.0'.
Branch origin/RELEASE-1.0.0 set up to track remote branch RELEASE-1.0.0 from origin.
Creating the local branch 'origin/RELEASE-2.0.0' for Subversion branch 'refs/remotes/origin/RELEASE-2.0.0'.
Branch origin/RELEASE-2.0.0 set up to track remote branch RELEASE-2.0.0 from origin.
Creating the local branch 'origin/master' for Subversion branch 'refs/remotes/origin/master'.
Branch origin/master set up to track remote branch master from origin.

# Checking for obsolete tags...
svn: warning: W160013: URL 'https://xx.xx.xx.xx/svn/products/example/tags/%7Bexample-tag-1.0.0-002,example-tag-2.0.0-020%7D' non-existent in revision 30613
svn: E200009: Could not list all targets because some targets don't exist
Deleting Git tag 'example-tag-1.3.1-001' not in Subversion.
Deleted tag 'example-tag-1.2.0-092' (was e210d27)
Deleting Git tag 'example-tag-1.0.0-064' not in Subversion.
Deleted tag 'example-tag-1.0.0-064' (was a6e9cdc)

# Checking for obsolete branches...
Deleted branch origin/RELEASE-1.0.0 (was bc9c9d2).
Deleting Git branch 'origin/RELEASE-1.1.0' not in Subversion.
Deleted branch origin/RELEASE-2.0.0 (was 526a807).
Deleting Git branch 'origin/RELEASE-2.0.0' not in Subversion.
Deleting Git branch 'origin/master' not in Subversion.
Deleted branch origin/master (was 4033e19).

# Cleaning tag names

# Cleaning branch names

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Dylan Montandon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 18, 2021

Hi!

I have the same problem, the "clean-git --force" doesn't seem to do anything. Have you found a solution ?

The last update of the script is 2014... Maybe it's time to update it Atlassian?

TAGS
AUG Leaders

Atlassian Community Events