svn-rebase doesn't work when you have a master git branch and no trunk folder in svn
Error log when I run java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar sync-rebase:
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
Should be nice to add a command line option to specify what is the corresponding svn folder for master git branch when doing a sync-rebase.
Comments (6)
-
Account Deactivated -
Account Deactivated having the issue myself
-
This may help, I'm having the issue myself: https://answers.atlassian.com/questions/301427/having-troubles-migrating-svn-to-stash-at-the-svn-migration-scripts-jar-sync-rebase-step
-
The 'git svn clone' solution found on @thekop69 's linke worked for me, when I included an explicit argument for defining trunk. I have a non-standard-layout SVN repo (just "Trunk" as the one branch, w/no tags), so I was successfully w/using the 'sync-rebase' task after cloning as follows:
~/GitMigration $ git svn clone --prefix='' --authors-file=authors.txt --trunk=/Trunk https://svnrepourl.com/parentdirectory GITREPONAME
I needed both the --prefix parameter and the explicit trunk name parameter to successfully run java -jar migration-scripts.jar sync-rebase.
-
--prefix is not working
-
I had to use
--prefix=''
and--trunk=/
for my non-std-layout repository. It worked then. - Log in to comment
I have the same issue although I do have a trunk folder