Why can I no longer fetch a Github repo via `svn:external`?

落花浮王杯 提交于 2019-12-25 03:14:02

问题


I used to be able to fetch projects from Github using SVN externals:

svn:externals > https://github.com/J7mbo/twitter-api-php/tree/develop twitter-api-php

Github had previously announced support for SVN, and this blog posts details the use of Github projects via SVN externals.

This worked just fine previously, but I've noticed recently (the past couple of weeks?) that I can no longer fetch any project from Github: I get a Unable to connect to a repository at URL *** error. Other externals seem to be working as normal. I can't find any documentation that suggests they've dropped or changed this feature. Does anyone know why this is no longer working, or if they've dropped support?

UPDATE: Running

svn ls https://github.com/J7mbo/twitter-api-php/branches/develop

returns the following error:

svn: E175002: OPTIONS of 'https://github.com/J7mbo/twitter-api-php/branches/develop': SSL handshake failed: SSL error: tlsv1 alert protocol version (https://github.com)

I'm guessing that's where my problem lies: my openssl version is LibreSSl 2.27, but I can't establish which version of TLS it uses, and in any instance I'm struggling to update openssl.


回答1:


The svn:externals property is evaluated by your local SVN-Client, not by Github. Therefore as long as Github support the SVN-bridge, svn:externals will work.

But your URL seems to be wrong:

> svn ls https://github.com/J7mbo/twitter-api-php/tree/develop
svn: warning: W160013: URL 'https://github.com/J7mbo/twitter-api-php/tree/develop' non-existent in revision 137
svn: E200009: Could not list all targets because some targets don't exist

This URL seems to work:

> svn ls https://github.com/J7mbo/twitter-api-php/branches/develop
.gitignore
.travis.yml
LICENSE.md
README.md
TwitterAPIExchange.php
composer.json
index.php
phpunit.xml
test/


来源:https://stackoverflow.com/questions/50190003/why-can-i-no-longer-fetch-a-github-repo-via-svnexternal

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!