From: Junio C Hamano Date: Fri, 20 Apr 2007 21:09:35 GMT Subject: Re: git clone problem through HTTP Message-ID: <7vk5w6ycq8.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <7vodliyd1j.fsf@assigned-by-dhcp.cox.net> Junio C Hamano writes: > "Aubrey Li" writes: > >> I'm behind of a firewall on which the git port is not permitted, so I >> can only use http protocol. Unfortunately, I can't clone linus' git >> tree at all. I've tried >> >> git version 1.4.4.2 >> git version 1.4.4.4 >> git version 1.5.0.1 >> git version 1.5.0.4 >> git version 1.5.0.6 >> git version 1.5.1.1, >> >> none of them work. The following is the error. > > $ git init > $ git remote add origin http://.../linux-2.6.git This step needs to have "add -m master" instead of just "add". > $ git config branch.master.remote origin > $ git config branch.master.merge refs/heads/master > $ git fetch > $ git merge origin Otherwise you end up having to say "git merge origin/master" here. > > should work, because I knew about this problem and fixed it in > git-fetch in v1.5.0.