第一次在windows上使用git-svn,git svn rebase
显示错误:
致命:索引文件打开失败:参数无效
为什么会发生,我该如何解决?
谢谢。
最佳答案
如果您在 Windows 上使用 msysgit,则有一个 regression on msysgit1.8.4 for git-svn
.
它似乎在 CMD 中执行时出现,而不是在 bash shell 中,因此您可以在 shell 中尝试相同的命令。
或者你可以 SubGit ,它是用于从 svn 转换到 git repo 的更完整和更强大的工具。 Listen to his author at GitMinutes #22 .
回归正在修复(目前——2013 年 10 月——在 'next
' branch of the git repo 中)
Bas Bossink确认 in the comments :
I just verified that it is fixed in git 1.8.5.2.msysgit.0
参见 commit 7fbd42 , 通过 jiangxin :
Tvangeste found that the "
relative_path
" function could not work properly on Windows if "in" and "prefix" have DOS drive prefix (such as "C:/windows"). ($gmane/234434)E.g., When execute:
test-path-utils
,relative_path "C:/a/b" "D:/x/y"
should return "C:/a/b
", but returns "../../C:/a/b
", which is wrong.So make relative_path honor DOS drive prefix.
关于git svn rebase 索引文件打开失败 : Invalid argument,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19511044/