How do I keep an svn:external up to date using git-svn?

后端 未结 8 2254
广开言路
广开言路 2020-12-02 06:44

Treating my repository as a SVN repo, I get:

svn co http://myrepo/foo/trunk foo
...
foo/
  bar/
  baz/ -> http://myrepo/baz/trunk

Treati

8条回答
  •  长情又很酷
    2020-12-02 07:19

    Here's what I've done.

    First I created an empty SVN repo (for the same root as the git):

    svn checkout --depth empty http://path/to/repo .
    

    This created empty svn repo in the git root. The point is that is contains the SVN externals properties.

    Next I simply check only the externals (I placed in PATH cygwin tools):

    svn propget svn:externals | sed -e 's/ / .\//' | sed -e 's/\'//g' | xargs -L1 svn co
    

提交回复
热议问题