OS X 10.11 / Xcode 7.0.1 git push无提示失败 [英] OS X 10.11 / Xcode 7.0.1 git push fails silently
问题描述
当我从命令行执行git push时,推送成功。
b
$ b
我很确定我的源代码在Xcode中正确设置,因为源代码管理 - > Pull工作正常。我的本地商店被称为主人,我的远程商店被称为原产地。我没有分支机构。
origin驻留在我的其他mac上,通过OS X文件共享访问,通过URLfile:/// Volumes / git-存储库/%252010.5 //我的项目名称在哪里。不幸的是,我在URL中有一个空格,它被Xcode双重编码为%25%20。线索?但为什么会拉工作?
Mac主机起源也运行OS X 10.11 / Xcode 7.0.1。它包含一个本地主,并被配置为推送到存在于同一磁盘上的原点。它以完全相同的方式失败:Xcode Push默默失败,而Xcode Pull和命令行推送成功。
非常感谢任何建议。谢谢。
解决方案:我创建了一个新的路径中没有空格的原点。
猜测:这是Xcode 7.0.1的git repo处理中的一个错误,它在转义URL时发生。
After upgrading to OS X 10.11 and Xcode 7.0.1, git push fails when invoked from Xcode's Source Control menu. It fails silently, with a happy message "Push Successful".
When I execute "git push" from the command line, the push succeeds.
I'm pretty sure my origin is set correctly inside Xcode, because Source Control -> Pull works fine.
My local store is called "master" and my remote store is called "origin". I have no branches.
"origin" resides on my other mac, accessed via OS X File Sharing, referenced with the URL "file:///Volumes/git-repositories/%252010.5//" where is my project name. Unfortunately, I have a space in the URL, which is doubly-encoded by Xcode as %25%20. A clue? But why would Pull work?
The mac hosting "origin" is also running OS X 10.11 / Xcode 7.0.1. It contains a local "master" and is configured to push to "origin", which exists on the same disk. It fails in EXACTLY the same manner: Xcode Push silently fails, while Xcode Pull and command-line push succeeds.
Any suggestions much appreciated. Thank you.
Solved: I created a new origin that has no spaces in its path.
Speculation: this is a bug in Xcode 7.0.1's git repo handling, when escaping URL's.
这篇关于OS X 10.11 / Xcode 7.0.1 git push无提示失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!