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 Join to answer
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...

706 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot