Why does “git svn fetch” command seem to be stuck and does nothing?

前端 未结 5 762
时光说笑
时光说笑 2020-12-13 18:28

EDIT: Workaround. Now we understand the issue, here is the solution: do

git svn fetch -r REVISION:HEAD

where REVISION is t

相关标签:
5条回答
  • 2020-12-13 18:35

    Try adding the --log-window-size=5000 parameter.

    If the repo has a large number of commits, git-svn will go through them 100 at a time by default. Bumping that up can increase its speed tremendously.

    0 讨论(0)
  • 2020-12-13 18:47

    i have change the fetch property to :refs/remotes/git-svn and it works for me

    0 讨论(0)
  • 2020-12-13 18:53

    In case of using Git for Windows, make sure to upgrade from 2.20.1 to either previous (2.20.0), next (2.21.0) or any other. Mentioned version has a bug making "git svn fetch" hang, which was later fixed.

    0 讨论(0)
  • 2020-12-13 18:56

    It becomes verbose after fetching the first relevant commit.

    But until it fetches that commit, you can ensure the command is working properly by checking the .git\svn\.metadata file. The lines branches-maxRev = 123 and tags-maxRev = 123 will keep updating and increasing their numbers as it works.

    0 讨论(0)
  • 2020-12-13 18:57

    For those who were not satisfied with the solution above :

    ISSUE : svn+ssh://svn.xxxxxxx.com/svnroot/strategy/products/mysoftware hangs on :

    Initialized empty Git repository in [MyLocalRepositoryPath]

    SOLUTION: Insert

    username@

    in front of svn url

    svn+ssh://username@svn.xxxxxxx.com/svnroot/strategy/products/mysoftware

    0 讨论(0)
提交回复
热议问题