Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git 1.7.11 Debian fatal: Unable to find remote helper for 'https'

Tags:

git

debian

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
like image 791
KoU_warch Avatar asked Jul 19 '12 00:07

KoU_warch


1 Answers

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.

like image 83
ppetraki Avatar answered Sep 22 '22 16:09

ppetraki