git-svn: what's the equivalent to `svn switch --relocate`?

后端 未结 8 536
深忆病人
深忆病人 2020-11-29 17:40

An svn repository I\'m mirroring through git-svn has changed URL.

In vanilla svn you\'d just do svn switch --relocate old_url_base new_url_base.

8条回答
  •  天命终不由人
    2020-11-29 18:17

    You can see if the following works OK:

    1. If svn-remote.svn.rewriteRoot does not exist in config file (.git/config):

      git config svn-remote.svn.rewriteRoot 
      
    2. If svn-remote.svn.rewriteUUID does not exist in config file:

      git config svn-remote.svn.rewriteUUID 
      

      The currentRepositoryUUID can be obtained from .git/svn/.metadata.

    3. git config svn-remote.svn.url

提交回复
热议问题