Reputation: 1226
I am working on yocto, trying to clone poky in my PC. In one of my ubuntu PC's I was able to clone poky.git.
git clone -b dizzy http://git.yoctoproject.org/git/poky.git
But in another ubuntu PC, I was unable to clone, giving Error 407.
a@a-VirtualBox:~$ git clone -b dizzy http://git.yoctoproject.org/git/poky.git
Cloning into 'poky'...
fatal: unable to access 'http://git.yoctoproject.org/git/poky.git/': The requested URL returned error: 407
I thought problem with proxy here. but git clone https://github.com/torvalds/linux.git, which is working. Not sure where i am going wrong. Thanks in advance
Upvotes: 3
Views: 1955
Reputation: 437
This issue occurs if you are behind a proxy wall. You need to setup gitproxy
. Requirement is socat
Create a gitproxy file in your home environment. Include this line after declaring your PROXY
exec socat STDIO SOCKS4:$PROXY:$1:$2
Add this line in your ~/.gitconfig [core] tab:
gitproxy = /home/<linux username>/bin/gitproxy
chmod +x ~/.gitproxy
Upvotes: 0