git-svn dcommit 失败,因为存储库名称包含空格
当尝试 git svn dcommit 到名称中包含空格的存储库时,我收到以下错误:
Committing to http://svn.kuluvalley.com/Meet the Expert/trunk ...
http://svn.kuluvalley.com/Meet the Expert/trunk
Filesystem has no item: '/!svn/bc/7397/Meet' path not found at /usr/libexec/git-core/git svn line 592
看起来 git svn 不支持其中包含空格的目录。
When attemping to git svn dcommit
to a repository that has spaces in it's name, I get the following error:
Committing to http://svn.kuluvalley.com/Meet the Expert/trunk ...
http://svn.kuluvalley.com/Meet the Expert/trunk
Filesystem has no item: '/!svn/bc/7397/Meet' path not found at /usr/libexec/git-core/git svn line 592
It looks like git svn
doesn't support directories with spaces in them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我能够通过修补 git-svn 来解决 git svn 不适用于包含空格的存储库的问题。
我将
url_path
函数更新为:对于 Windows (x64) 用户,可以在 Editor.pm 文件中找到该函数,该文件位于
这可确保 url 中的空格编码正确。
它似乎对我有用,但尚未经过彻底测试。
I was able to work around the problem of
git svn
not working for repositories with spaces in them by patching git-svn.I updated the
url_path
function to:For windows (x64) users, this function can be found in Editor.pm file, which is located in
This ensures that the spaces in the url are encoded correctly.
It seems to work for me, but hasn't been tested thoroughly.
我相信空格问题已在 Git >= 1.8.0 中修复(请参阅:#786942)。
所以你应该考虑升级它。
请参阅 GitHub 主页:https://github.com/git/git
I believe the problem with spaces is fixed in Git >= 1.8.0 (See: #786942).
So you should consider to upgrade it.
See GitHub Home page: https://github.com/git/git