sync-rebase error when running svn-migration-scripts.jar

I've been following Atlassian's Migrating to Git guide step-by-step to create a local git repo on a Mac. The preparation and conversion stages were successful. However, when I get to the synchronisation stage an error is reported when I run the command to synchronise with the fetched commits:

java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar sync-rebase

 

The error reported is:

 

1
2
3
4
fatal: ambiguous argument 'remotes/trunk': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error finding tracking ref for branch master

I'm aware that the question has already been asked here but I've not been able to resolve the error from the answers provided.

1 answer

When you first clone, use the prefix switch as shown:

 

git svn clone --prefix=''

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,030 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you