git svn rebase索引文件打开失败:参数无效 [英] git svn rebase index file open failed : Invalid argument

查看:136
本文介绍了git svn rebase索引文件打开失败:参数无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次在windows上使用git-svn, git svn rebase 显示错误:

fatal:索引文件打开失败:无效参数



为什么它发生了,我该如何解决它?



谢谢。

解决方案

如果您在Windows上使用msysgit,有一个 git-svn 在msysgit1.8.4上进行回归。

在CMD中执行时似乎出现,而不是在bash shell,所以你可以在shell中试试这个命令。



或者你可以 SubGit ,这是从svn过渡到git repo更完整和强大的工具。 在GitMinutes#22上聆听他的作者






回归正在进行中固定(目前 - 2013年10月 - 在'下一个'分支的git中repo
Bas Bossink 确认中:


$ / git-svn-rebase-index-file-open-failed-invalid-argument / 19511402?noredirect = 1#comment31584550_19511402> b $ b


我刚刚确认它已修复 git 1.8.5.2.msysgit.0


请参阅 commit 7fbd42 ,by jiangxin


Tvangeste 发现<$如果in和prefix具有DOS驱动器前缀(例如C:/ windows),则c $ c> relative_path 函数无法在Windows上正常工作。 ( $ gmane / 234434



例如,执行时: test-path-utils relative_pathC:/ a / bD:/ x / y应该返回 C:/ a / b ,但返回 ../../ C:/ a / b ,这是错误的。



因此,请使用relative_path荣誉DOS驱动器前缀。



I use git-svn on windows for the first time , git svn rebase show error:

fatal: index file open failed: Invalid argument

Why it happened and how can i fix it ?

Thanks.

解决方案

If you are using msysgit on windows, there is a regression on msysgit1.8.4 for git-svn.
It seems to appear when executed in a CMD, not in a bash shell, so you can try that same command in a shell.

Or you can SubGit, which is much more complete and robust tool for transitionning from svn to git repo. Listen to his author at GitMinutes #22.


The regression is in progress to be fixed (currently -- October 2013 -- in the 'next' branch of the git repo) Bas Bossink confirms in the comments:

I just verified that it is fixed in git 1.8.5.2.msysgit.0

See commit 7fbd42, by 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索引文件打开失败:参数无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆