Hi, Actually, I have done all the settings, including http password. After I run git push, it says,
Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 480 bytes, done. Total 3 (delta 2), reused 0 (delta 0)
That is all. No error report. But I think it need says more:
To http://review.coreboot.org/p/coreboot.git * [new branch] HEAD -> refs/for/master
Any settings I missed?
Zheng
-----Original Message----- From: thomasg [mailto:thomas@gstaedtner.net] Sent: Friday, March 23, 2012 4:46 PM To: Bao, Zheng Cc: coreboot@coreboot.org Subject: Re: [coreboot] Can we push using http user/password authentication
On Fri, Mar 23, 2012 at 07:33, Bao, Zheng Zheng.Bao@amd.com wrote:
Hi, These commits are uploaded at my home by ssh:29418. In our lab, it is
blocked by firewall. But I cannot go back home every time when I need to push.
Zheng
-----Original Message----- From: coreboot-bounces@coreboot.org [mailto:coreboot- bounces@coreboot.org] On Behalf Of pk Sent: Friday, March 23, 2012 2:11 PM To: coreboot@coreboot.org Subject: Re: [coreboot] Can we push using http user/password authentication
On 2012-03-23 04:31, Bao, Zheng wrote:
Hi, In our lab, we need to get access the repository by http because of the firewall. I tried to push my commit through http. It didn't say anything wrong. But I cannot see my change on gerrit. I am wondering if http really works. Does it?
Hi,
I'm just a lurker on this mail list... but I can see gerrit commits mailed to this list.
Cut from an example:
"Zheng Bao (zheng.bao@amd.com) just uploaded a new patch set to
gerrit,
which you can find at http://review.coreboot.org/620
-gerrit
commit e384f2026c59b7e7f774f34f6f9e9287bdc8868b Author: zbao fishbaozi@gmail.com Date: ? Thu Mar 22 18:33:33 2012 +0800
? ? Add sb800 spi support."
HTH
Best regards
Peter K
-- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
-- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Generally this works for Gerrit, not 100% sure if it is correctly configured for coreboots gerrit instance. You have to use the URI http://review.coreboot.org/p/coreboot.git You will also have to generate a HTTP password at http://review.coreboot.org/#/settings/http-password Lastly at least git 1.6.6 is required for this to work.
Hope this helps.
Am 23.03.2012 11:27, schrieb Bao, Zheng:
Hi, Actually, I have done all the settings, including http password. After I run git push, it says,
Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 480 bytes, done. Total 3 (delta 2), reused 0 (delta 0)
That is all. No error report. But I think it need says more:
To http://review.coreboot.org/p/coreboot.git
- [new branch] HEAD -> refs/for/master
Any settings I missed?
It looks good. Maybe you already pushed exactly that change (via ssh) before? gerrit (and git in general) only cares for new commit ids.
I just pushed via http successfully. Relevant configuration (for me) follows. The http user ("patrick") and password ("ABCDE") are taken from my gerrit settings.
[patrick@office coreboot]$ git remote -v origin http://review.coreboot.org/p/coreboot.git (fetch) origin http://review.coreboot.org/p/coreboot.git (push)
[patrick@office coreboot]$ cat ~/.netrc machine review.coreboot.org login patrick password ABCDE
Patrick