git svn导入一个尾部空间的分支 [英] git svn importing a branch with a trailing space

查看:146
本文介绍了git svn导入一个尾部空间的分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 git svn 将svn存储库导入到git中。我在Windows Server 2008 R2上使用了Git-1.8.0-preview20121022。

I'm importing a svn repository into git using git svn. I'm using Git-1.8.0-preview20121022 on Windows Server 2008 R2.

导入已经运行了一段时间,并且没有发生意外地取得了前4000个版本。然而,它现在似乎已经遇到了一个分支名称与尾部空间,它已经下降。

The import's been running for a while and has fetched the first 4000 revisions without incident. However, it now seems to have come across a branch name with a trailing space and it has fallen over.

$ git svn fetch
Found possible branch point: https://10.10.10.2/svn/project/trunk => https://10.10.10.2/svn/project/branches/Release%2020110929%20, 3976
Found branch parent: (refs/remotes/Release 20110929 ) 691fb7f7d11cbb1afe35106f60a1d117ba415f4c
fatal: Unable to create 'd:/GitMigration/project/.git/svn/refs/remotes/Release 20110929 /index.lock': No such file or directory
read-tree 691fb7f7d11cbb1afe35106f60a1d117ba415f4c: command returned error: 128

这个分支不再存在,所以我不能以正常方式更改名称。该目录的名称中没有尾随空格,但我无法找到重命名的方式来保留空间。

This branch doesn't exist any more so I can't change the name in the normal way. The directory exists without the trailing space in the name but I can't find a way to rename it that preserves the space.

有什么我可以做的吗?

Is there anything I can do about this?

推荐答案

最后,我放弃了在Windows中导入这个功能。我敢肯定,在那里有一些黑客解决方案,但只要在Linux中执行此操作,然后将其从Windows中移出,就更容易了。只要分支不是最新的,这应该可以正常工作。

In the end I gave up on importing this in Windows. There are hacky solutions out there I'm sure, but it's much easier just to do this in Linux then pull it from there to Windows. This should work fine as long as the branch isn't current.

这篇关于git svn导入一个尾部空间的分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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