Why is git-svn trying to use an old branch point?

放肆的年华 提交于 2019-12-10 23:19:07

问题


I'm trying to rely more heavily on git-svn for all my tasks, rather than just use git locally and then svn to handle server branches and tags.

I did a brand new clone of my svn repository. I had to start from a fairly recent (300 revisions or so back) revision to prevent it taking days to clone. git svn fetch and git svn dcommit are all working fine.

I'm trying to tag with our latest build number, 3.6.1. So to do a dry-run I issue:

$ git svn tag -n -m "3.6.1 build" 3.6.1
Copying https://svnserver:8443/svn/TheProject/trunk at r5735 to https://svnserver:8443/svn/TheProject/tags/3.6.1...
branch_from: /tags => /tags/3.3.5
Found possible branch point: https://svnserver:8443/svn/TheProject/tags/3.3.5 => https://svnserver:8443/svn/TheProject/tags/3.3.5, 5726
Initializing parent: refs/remotes/tags/3.3.5@5726
Found possible branch point: https://svnserver:8443/svn/TheProject/trunk => https://svnserver:8443/svn/TheProject/tags/3.3.5, 2309
...I cancel as it starts listing all the files it'll add to svn...

I don't really get what's happening here. Why is it going back so far to determine a branch point? Is there something wrong?


回答1:


I'm still unsure WHY it needed it, but it looks like it needed a "git svn fetch" so git knew about other branches and tags before it could do the new one. After that (long-running) fetch, it's able to branch/tag perfectly.



来源:https://stackoverflow.com/questions/5746566/why-is-git-svn-trying-to-use-an-old-branch-point

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!