【问题标题】:Why can I no longer fetch a Github repo via `svn:external`?为什么我不能再通过 `svn:external` 获取 Github 存储库?
【发布时间】:2018-10-15 19:57:03
【问题描述】:

我曾经能够使用 SVN 外部从 Github 获取项目:

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

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

这之前工作得很好,但我最近(过去几周?)注意到我无法再从 Github 获取任何项目:我收到 Unable to connect to a repository at URL *** 错误。其他外部似乎正常工作。我找不到任何表明他们已删除或更改此功能的文档。有谁知道为什么这不再起作用,或者他们是否放弃了支持?

更新: 跑步

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

返回以下错误:

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)

我猜这就是我的问题所在:我的 openssl 版本是 LibreSSl 2.27,但我无法确定它使用的 TLS 版本,而且无论如何我都在努力更新 openssl

【问题讨论】:

    标签: github svn openssl


    【解决方案1】:

    svn:externals 属性由您本地的 SVN 客户端评估,而不是由 Github。因此只要 Github 支持 SVN-bridge,svn:externals 就可以工作。

    但是您的网址似乎有误:

    > 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
    

    这个网址似乎有效:

    > 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/
    

    【讨论】:

    • 当我运行你的示例命令时,它会返回一个 SSL 握手错误,这让我认为这是 OSX 中的 SSL 问题,而不是 SVN 直接的问题。我会做更多的探索......
    猜你喜欢
    • 2018-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-09
    • 2018-03-25
    • 1970-01-01
    • 2020-12-05
    • 2019-07-18
    相关资源
    最近更新 更多