I want to use git to clone a svn repository, but unfortunately, where svn checkout
gets the repo with all externals, git svn clone
only gets the repository without externals. How can I get the externals from the svn repository via git svn
? I don't want to do any fancy stuff, just get the the complet repo with externals.
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- How can I set the SVN password with Emacs 23.1 bui
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
git-svn doesn't support externals, but you may try SmartGit instead of git-svn. It supports svn:externals, converting them into .gitsvnextmodules file and displaying as modules. The only restriction: you should clone the repository with SmartGit instead of opening already existing git-svn repository.
I have been use git as a front end to access a SVN repository. The structure in SVN is generally pretty simple such that there is top level directory which has the externals in it and no externals in sub-directories. Also the externals don't really change much once they are added in. So assuming something like:
I have had success getting all the externals with the following command:
I guess a more complicated structure for externals would require a more complicated perl script. Also, if your externals change you will need to do something similar again.
I cannot comment, so I post solution here that works in my case