SourceTree在Yosemite下提交到SAE的一些问题解决

来源:互联网 发布:vmware网络配置 双网卡 编辑:程序博客网 时间:2024/06/03 14:19

问题一:SourceTree不能正确检测SVN地址。关于这个问题的解决可以参考这个网页的Problem #1:http://www.third-helix.com/2013/09/08/using-sourcetree-with-subversion-hint-dont.html。大致意思是指Subversion本身没有安装。SourceTree自带了自己的Git,但是没有自动安装Subversion。最为简单的办法是从Mac App Store下载Xcode,然后打开Xcode,安装Command Line Tools组件,这个组件就包含了Subversion。重启SourceTree,这时候应该会正确检测SVN地址了。

问题二:SourceTree在检出时提示Can’t locate SVN/Core.pm in @INC (you may need to install the SVN::Core module)。这个问题可以参考http://www.contrid.co.za/2014/10/solved-os-x-yosemite-git-svn-broken/。大致意思是Perl的SVN没有正确和Xcode中的SVN链接起来(升级完Yosemite之后可能出现的问题)。链接完后提示另一个错误:Can’t locate loadable object for module SVN::_Core in @INC。这说明其它组件没有被正确加载,执行另一条链接命令。具体命令如下:

sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/SVN /System/Library/Perl/Extras/5.18/SVNsudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/auto/SVN/ /System/Library/Perl/Extras/5.18/auto/SVN

问题三:自签名的问题。SourceTree提交SAE时提示Server certificate verification failed: issuer is not trusted。可以参考这个页面:http://swww.sinaapp.com/?p=143。以下就引用这个页面的解决方法。先打开Terminal,

svn list https://svn.sinaapp.com/your_app_name

提示输入密码,因为第一次用户名默认是OS X的当前用户,所以先随便输一个。错误,第二次重新要求输入username即安全邮箱,之后password即安全密码。验证完毕会返回警告,和coda返回的一模一样,站点不受信任,继续吗?(R)eject, accept (t)emporarily or accept (p)ermanently? 轻按p(永久)即可。

此外在SourceTree官方知识库中看到这个图形化的解决方法:手动信任证书即可(没有试验过,但应该可行:https://confluence.atlassian.com/display/SOURCETREEKB/Resolving+SSL+Self-Signed+Certificate+Errors)。

0 0
原创粉丝点击