无法从git svn repo获取分支

无法从git svn repo获取分支,git,git-svn,Git,Git Svn,我想在svn服务器上创建一个新分支,然后创建一个本地分支来跟踪这个新分支 但我认为在这个过程中出现了一些问题,因为svn服务器上创建了一个分支,但我无法获取它 $git svn branch -m "new-branch-message" new-branch Copying http://pathtorepo/project/trunk at r28074 to http://pathtorepo/project/branches/new-branch... Found possible br

我想在svn服务器上创建一个新分支,然后创建一个本地分支来跟踪这个新分支

但我认为在这个过程中出现了一些问题,因为svn服务器上创建了一个分支,但我无法获取它

$git svn branch -m "new-branch-message" new-branch
Copying http://pathtorepo/project/trunk at r28074 to http://pathtorepo/project/branches/new-branch...
Found possible branch point: http://pathtorepo/project/branches/BRANCH-2-2-11-0 => http://pathtorepo/project/tags/VER-2_2_11-1, 27365
Found branch parent: (refs/remotes/tags/VER-2_2_11-1) 243dea0687bd6721621ab4f7287dec7e121489e8
Following parent with do_switch
Invalid filesystem path syntax: Cannot replace a directory from within at /usr/libexec/git-core/git-svn line 5097

$cat .git/config
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[svn-remote "svn"]
    url = http://pathtorepo
    fetch = project/trunk:refs/remotes/trunk
    branches = project/branches/*:refs/remotes/*
    tags = project/tags/*:refs/remotes/tags/*

$git svn --version
git-svn version 1.7.1 (svn 1.6.11)

关于“无效文件系统路径语法”错误的含义有什么想法吗?我是否正确设置了git repo?

您需要将cd(更改目录)放置到您想要新分支的位置。目前它正在尝试写入svn命令的位置。你能解释一下吗?我需要为分支创建目录吗?若有,;哪里为什么要写svn命令所在的位置?通常,您会在自己选择的某个位置创建一个名为
repo
的目录,然后将
cd
放入其中,并运行commmand
git svn分支
…不要说任何关于创建目录的内容。我还认为问题实际上在于获取svn repo,因为
git svn fetch
给出了相同的(无效的文件系统路径语法)错误。是否找到了解决方案?