git svn rebase 索引文件打开失败 : Invalid argument

标签 git git-svn

第一次在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/

相关文章:

c++ - 使用 cmake 和 QT 组织多个项目

git - 转换为 git 时保留 svn 复制历史

git - 如何在 git-svn 中指定重叠规则

linux - 如何让 git-svn 使用特定版本的 SVN?

regex - 如何在 git svn 中评估忽略路径?

git-svn - 如何更改现有 git-svn 存储库上的忽略路径?

ruby-on-rails - pdf-writer-1.1.8/lib/pdf/writer.rb :712: invalid multibyte char (US-ASCII)

吉蒂诺 : add a file that is in an excluded folder

git - 使用 git hooks 为当前提交更改的每个文件创建差异报告

git - 如何使用 git-svn clone 仅从 Subversion 存储库获取 HEAD 修订版?