Git 1.7.11 Debian 致命:找不到“https"的远程助手 [英] Git 1.7.11 Debian fatal: Unable to find remote helper for 'https'
问题描述
我正在使用 bitbucket 和 git 来管理项目.我在 Windows 开发环境下没有遇到任何问题,但是我在 debian 挤压中遇到了问题.克隆时不存在问题,仅在推送时存在.我得到的错误是:
致命:找不到https"的远程帮助程序
我试过用 curl 编译它,试过安装几个版本的 curl,但没有成功.在这个 question 中,git 版本是 1.7.1,答案是移到 1.7.7,但是我的 git 版本是 1.7.11
我该如何解决这个问题?
更新:
我的 config.log 说 NO_CURL=''
通过 https 单独使用 curl 没有问题
更新2:
我的配置也显示 NO_OPENSSL = ''
在 root 上执行 find -name git-remote-* 会显示以下内容:
./usr/share/man/man1/git-remote-helpers.1.gz./usr/local/libexec/git-core/git-remote-fd./usr/local/libexec/git-core/git-remote-ext./usr/local/libexec/git-core/git-remote-https./usr/local/libexec/git-core/git-remote-testgit./usr/local/libexec/git-core/git-remote-ftps./usr/local/libexec/git-core/git-remote-ftp./usr/local/libexec/git-core/git-remote-http./usr/lib/git-core/git-remote-https./usr/lib/git-core/git-remote-testgit./usr/lib/git-core/git-remote-ftps./usr/lib/git-core/git-remote-ftp./usr/lib/git-core/git-remote-http./home/osednaca/git-1.7.11/git-remote-ftps./home/osednaca/git-1.7.11/git-remote-ext./home/osednaca/git-1.7.11/git-remote-https./home/osednaca/git-1.7.11/git-remote-testgit.py./home/osednaca/git-1.7.11/git-remote-ftp./home/osednaca/git-1.7.11/git-remote-fd./home/osednaca/git-1.7.11/Documentation/git-remote-helpers.txt./home/osednaca/git-1.7.11/Documentation/git-remote-fd.txt./home/osednaca/git-1.7.11/Documentation/git-remote-testgit.txt./home/osednaca/git-1.7.11/Documentation/git-remote-ext.txt./home/osednaca/git-1.7.11/git-remote-testgit./home/osednaca/git-1.7.11/git-remote-http./home/osednaca/git-1.7.11/contrib/mw-to-git/git-remote-mediawiki./home/osednaca/git-1.7.11/contrib/mw-to-git/git-remote-mediawiki.txt
如果你要 strace -f 这你会看到它实际上是在试图找到那个助手,但是在系统路径中.要更改该根目录,您可以使用 --exec-path 或 GIT_EXEC_PATH.
例如说我从存档中 wget'd git-core,然后将 dpkg -x 放入 ~/opt,然后我会
<上一页>导出 GIT_EXEC_PATH=/home/ppetraki/opt/usr/lib/git-core在哪里,
<上一页>找到 ~/-name git-remote-https/home/ppetraki/opt/usr/lib/git-core/git-remote-https用它来调试,
<上一页>strace -f $FOO/usr/bin/git clone https://uri > trace.out 2>&1希望这会有所帮助.
I'm using bitbucket along with git to manage a project. I've experience no problems under windows development environment however i'm having issues in debian squeeze. The problem is not present at clone, only on push. The error i'm getting is:
fatal: Unable to find remote helper for 'https'
I've tried compile it with curl, tried installing several version of curl, but no success. In this question the git version was 1.7.1 and the answer was to move to 1.7.7, however my version of git is 1.7.11
How can i fix this?
Update:
My config.log says NO_CURL=''
I have no problem using curl by itself with https
Update2:
my config also says NO_OPENSSL = ''
Doing a find -name git-remote-* on root shows me the following:
./usr/share/man/man1/git-remote-helpers.1.gz
./usr/local/libexec/git-core/git-remote-fd
./usr/local/libexec/git-core/git-remote-ext
./usr/local/libexec/git-core/git-remote-https
./usr/local/libexec/git-core/git-remote-testgit
./usr/local/libexec/git-core/git-remote-ftps
./usr/local/libexec/git-core/git-remote-ftp
./usr/local/libexec/git-core/git-remote-http
./usr/lib/git-core/git-remote-https
./usr/lib/git-core/git-remote-testgit
./usr/lib/git-core/git-remote-ftps
./usr/lib/git-core/git-remote-ftp
./usr/lib/git-core/git-remote-http
./home/osednaca/git-1.7.11/git-remote-ftps
./home/osednaca/git-1.7.11/git-remote-ext
./home/osednaca/git-1.7.11/git-remote-https
./home/osednaca/git-1.7.11/git-remote-testgit.py
./home/osednaca/git-1.7.11/git-remote-ftp
./home/osednaca/git-1.7.11/git-remote-fd
./home/osednaca/git-1.7.11/Documentation/git-remote-helpers.txt
./home/osednaca/git-1.7.11/Documentation/git-remote-fd.txt
./home/osednaca/git-1.7.11/Documentation/git-remote-testgit.txt
./home/osednaca/git-1.7.11/Documentation/git-remote-ext.txt
./home/osednaca/git-1.7.11/git-remote-testgit
./home/osednaca/git-1.7.11/git-remote-http
./home/osednaca/git-1.7.11/contrib/mw-to-git/git-remote-mediawiki
./home/osednaca/git-1.7.11/contrib/mw-to-git/git-remote-mediawiki.txt
If you were to strace -f this you would see it actually is trying to find that helper, but in system path. To change that root you can use --exec-path or GIT_EXEC_PATH.
For example say I wget'd git-core from the archive, and dpkg -x into ~/opt, I would then
export GIT_EXEC_PATH=/home/ppetraki/opt/usr/lib/git-core
where,
find ~/ -name git-remote-https /home/ppetraki/opt/usr/lib/git-core/git-remote-https
Use this to debug,
strace -f $FOO/usr/bin/git clone https://uri > trace.out 2>&1
Hope this helps.
这篇关于Git 1.7.11 Debian 致命:找不到“https"的远程助手的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!