2

Git リポジトリからのフェッチ、プル、およびクローン作成に問題があります。次のエラー メッセージが表示されます

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
fatal: unable to access 'https://name@domain.tld/scm/project/projectname.git/': error:14077102:SSL routines:SSL23_GET_SERVER_HELLO:unsupported protocol

サーバーは自己ホストの BitBucket サーバーで、クライアントは Sourcetree 1.8.3.0 です。Git は 2.6.1 ですが、2.7.2 でも同じエラーが発生します

クライアント マシンは Windows 10 です。

同じ構成が Mac でも機能します。また、Sourcetree の代わりに TortoiseGit を使用すると、エラーが発生します。したがって、Winが問題を引き起こしていると思われます。

どうすれば本当の問題が何であるかを知ることができますか? エラーメッセージはあまり役に立ちません。

アップデート:

これは、コマンドラインからgit pullを実行したときに得られるものです

C:\0.GIT\project>set GIT_TRACE=1
C:\0.GIT\project>set GIT_CURL_VERBOSE=1

C:\0.GIT\project>git pull
08:48:43.730071 git.c:348               trace: built-in: git 'pull'
08:48:43.734740 run-command.c:343       trace: run_command: 'fetch' '--update-head-ok'
08:48:43.974726 git.c:348               trace: built-in: git 'fetch' '--update-head-ok'
08:48:43.988735 run-command.c:343       trace: run_command: 'git-remote-https' 'origin' 'https://ulrich@server.domain.tld/project.git'
* Couldn't find host server.domain.tld in the _netrc file; using defaults
* timeout on name lookup is not supported
*   Trying 81.xxx.xxx.xxx ...
* Connected to server.domain.tld (81.xxx.xxx.xxx) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
  CApath: none
* error:14077102:SSL routines:SSL23_GET_SERVER_HELLO:unsupported protocol
* Closing connection 0
fatal: unable to access 'https://ulrich@server.domain.tld/project.git/': error:14077102:SSL routines:SSL23_GET_SERVER_HELLO:unsupported protocol
4

1 に答える 1

1

このエラー メッセージは、サーバーが最新の TLS バージョンをサポートしておらず、SSLv2 または SSLv3 のみをサポートしていることを示しています。

Gitは、RFC 準拠の OpenSSL を使用する curl を使用ます。暗号はデフォルトで無効になっています)。

于 2016-03-27T11:50:43.573 に答える