Why does "git svn fetch" command seem to be stuck and does nothing?
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.
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://[email protected]/svnroot/strategy/products/mysoftware
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.
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.