【发布时间】:2016-04-09 22:50:59
【问题描述】:
我正在尝试通过 git-svn 进行所有分支和合并,但是我在 subversion 中挂断了分支。
我们的管理员告诉我,我对 repo 拥有完整的读/写权限,并且我可以获取最新的代码。
为了测试,我删除了我的 ~/.subversion/svn.simple 目录并运行了这个。
04:13 pm [214423L] C:\Dev\MyFooApp.Bar [master]
$ git svn fetch
Authentication realm: <https://code:443> VisualSVN Server
Password for 'cflorell': {my password}
04:14 pm [214423L] C:\Dev\MyFooApp.Bar [master]
$ git svn fetch
04:14 pm [214423L] C:\Dev\MyFooApp.Bar [master]
$
另外,如果我使用 Tortoise 克隆 repo,然后使用 svn 创建一个分支,它似乎可以工作。
04:43 pm [214423L] C:\Dev\MyFooApp.Bar
$ svn copy https://code/svn/MyFooApp.Bar/trunk https://code/svn/MyFooApp.Bar/branches/test-branch -m "test branch"
Committing transaction...
Committed revision 93.
但在尝试使用git-svn 创建分支时,它仍然说我的身份验证无效。
04:14 pm [214423L] C:\Dev\MyFooApp.Bar [master]
$ git svn branch develop
Copying https://code/svn/MyFooApp.Bar/trunk at r92 to https://code/svn/MyFooApp.Bar/branches/develop...
Authentication failed: Unable to connect to a repository at URL 'https://code/svn/MyFooApp.Bar/trunk': No more credentials or we tried too many times.
Authentication failed at C:\Program Files\Git\mingw64/libexec/git-core\git-svn line 1196.
04:14 pm [214423L] C:\Dev\MyFooApp.Bar [master]
$
我的config 文件我相信是正确的。
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[svn-remote "svn"]
url = https://code/svn/MyFooApp.Bar
fetch = trunk:refs/remotes/svn/trunk
branches = branches/*:refs/remotes/svn/*
tags = tags/*:refs/remotes/svn/tags/*
所有这些我可能哪里出错了?
【问题讨论】:
-
你解决过这个问题吗?我遇到了类似的事情,不得不求助于使用 svn 客户端来创建标签分支,因为我想不出办法过去。
-
我从来没有这样做过,我说服我们的公司搬到 GIT。
-
看在你的份上,我为这个结果感到高兴!不幸的是,Wordpress 插件库似乎需要 Subversion 来部署插件,刚刚通过
r1360603,没有显示出放缓的迹象,而且我没有说服它迁移到 DVCS 的影响力。 -
我也遇到了这个问题,但还没有弄清楚为什么,我能够推送到 svn 服务器,我能够从服务器中提取。然而,Git SVN 分支命令每次也会给我同样的错误。
-
我陷入了完全相同的境地。花了最后一个小时试图弄清楚如何在 WP 插件 repo 上标记一个简单的版本,仍然无济于事......
标签: git-svn