Cómo solucionar git svn si el repositorio SVN se ha movido

Tengo un repositorio Git clonado de un repositorio Svn. Se ha movido el repositorio Svn a otro servidor, y ahora el git svn rebase lanza este error:

Unable to determine upstream SVN information from working tree history

Afortunadamente he encontrado una solución:

1) editar la URL svn-remote en .git/config para apuntar al nuevo repositorio
2) lanzar git svn fetch
3) cambiar la url svn-remote al antiguo repositorio
4) lanzar git svn rebase -l para realizar un rebase local (con los cambios obtenidos en el último fetch)
5) cambiar la url svn-remote url de nuevo al nuevo repositorio
6) lanzar git svn rebase que ahora debería funcionar

Advertisement

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.