使用TortoiseHG https模式克隆时出现SSL版本错误

时间:2013-11-06 06:40:18

标签: ssl windows-7 mercurial tortoisehg

我在win7 64b上使用TortoiseHG来使用https协议克隆存储库。我已经安装并配置了公共证书,因此可以检查服务器证书的有效性。 但是,我在尝试克隆时遇到以下错误:

% hg clone --verbose -- https://***/hg/Trainings/train-repo1 "c:\sandboxes\hg"
SSL error: wrong version number
[command returned code 255 Wed Nov 06 14:28:47 2013]

我想我必须以某种方式配置Tortoise端支持的SSL版本,但无法在互联网上找到有关如何操作的资源。我正在寻找有关该主题的任何解释或文档。 Tks!

注意:repo服务器强迫我使用https,我无法控制它。 (无法切换到ssh)

2 个答案:

答案 0 :(得分:1)

我在安装上遇到类似的错误消息,该安装以前没有问题,也没有对服务器进行任何已知更改(由我控制)或我当地的TortoiseHg安装。

我将其跟踪为在我的计算机上为不相关的程序设置了环境变量HTTP_PROXY和HTTPS_PROXY。

我通过在mercurial.ini中添加以下内容来修复它:

MyAdapter.RecyclerViewOnTouchListener onTouchListener = new MyAdapter.RecyclerViewOnTouchListener() {

    @Override
    public void onTouch(ImageView v, MotionEvent event) {
        switch (event.getAction()) {
            case MotionEvent.ACTION_MOVE:
                break;
            case MotionEvent.ACTION_DOWN:
                // Enlarge image to its original size and remove it from the list, also it should be able to move in the recycler view.
                break;
            case MotionEvent.ACTION_UP:
                // Put image back to its position at list
                break;
            default:
                break;
        }
    }
};

答案 1 :(得分:1)

要解决此问题,我刚刚更新了TortoiseHG(via webchoco install tortoisehg),后者又更新了SSL的内部版本,我认为这是旧的bitbucket淘汰了。

相关问题