git-svn clone checkouts wrong repo?

前端 未结 4 1163
醉梦人生
醉梦人生 2020-12-14 00:18

So I am trying to switch to git, by using git-svn. I am having a svn repo called myrepo from which I want to clone just the project called myproject

4条回答
  •  伪装坚强ぢ
    2020-12-14 00:45

    Make sure that you specify a full path to myproject it seems like partial paths are not handled well by the fetch part of the clone operation. You may use the colon in that path on Windows (e.g. c:\myproject) (but may not use a colon in the source repository path).

    git svn clone path-to-repo/myrepo/myproject --stdlayout --prefix=svn myproject
    

提交回复
热议问题