Mover el repositorio SVN no estándar a BitBucket

Mover el repositorio SVN no estándar a BitBucket

Estoy migrando mi repositorio SVN a Git (BitBucket) usando estotutorial. Pero no he utilizado el diseño SVN estándar, por lo que parece poco problemático.

Mi repositorio SVN es una copia simple del proyecto de Android.

/svn/dirname/project/app

No hay subcarpetas y trunk. Se puede decir que es igual al baúl.branchestagsproject

git svn clone --trunk=/project --authors-file=authors.txt https://host/svn/dirname project
Initialised empty Git repository in /home/osboxes/GitMigration/project/.git/
Checked out HEAD:
https://host/svn/dirname/project r300

El siguiente paso habrá sido la limpieza pero falló. Quizás porque no tengo sucursales:

java -jar ~/svn-migration-scripts.jar clean-git
Could not retrieve the config for the key: svn-remote.svn.branches

Pero luego falló y no sé cómo continuar.

java -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

Respuesta1

Me parece arreglado. Lo que hice:

  1. repositorio SVN reorganizado al diseño estándar
  2. git svn clone --stdlayout --prefix='' --authors-file=authors.txt https://host/svn/dirname project

Encontré un número 2 de attlassian de 2014 con una solicitud para agregar compatibilidad con Git 2.0. Tiene 22 votos y aún no está resuelto. Hubo una sugerencia para usar el prefixparámetro.

información relacionada