> Thank you for all the previous replies to help me setting up gerrit. I
> am now able to commit changes back to gerrit with git commands. I am
> reading some of the webpages and looks like I can use repo tool with
> gerrit as well. It seems to be a better way? Here is the web page
> that I read,
> http://wiki.cyanogenmod.com/wiki/Howto:_Gerrit
>
> Here is a list of what I have done, however, I failed to commit, why?
>
> 1. Create manifest.xml that point to gerrit...
>
> <?xml version="1.0" encoding="UTF-8"?>
> <manifest>
> <remote name="git"
> fetch="ssh://username@gerrit_host:29418/"
> review="ssh://username@gerrit_host:29418/" />
The review attribute should point to the HTTP URL of your Gerrit. Repo
will tack on /ssh_info to that URL to obtain the SSH configuration. So,
assuming http://gerrit_host leads to your Gerrit UI:
<remote name="git"
fetch="ssh://username@gerrit_host:29418/"
review="http://gerrit_host" />
Or:
<remote name="git"
fetch="ssh://username@gerrit_host:29418/"
review="gerrit_host" />
Also, you don't want to specify the username in the manifest as it's
typically shared among all users. You can use the insteadOf feature
of .gitconfig and/or the SSH client's configuration to control this
so that you just need to enter the protocol and hostname in the
manifest.
[...]
> 6. Upload the changes back to gerrit.
>
> repo upload testrepo_gerrit3
>
> Now I am having errors, why?
The error is caused by the bad review attribute explained above.
[...]
--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson
On Monday, July 18, 2011 at 20:02 CEST,
> Any ideas?
Again, I did respond to your question. Look in the archives.
The reply from Magnus in this email thread is here:
https://groups.google.com/d/msg/repo-discuss/XPVqV3zvX5I/FeY1hNdrgtIJ
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
--
probably your EMAIL env variable
or your email in .gitconfig
I think it's either the first part of user.email in .git/config in testrepo_3 or that first part of user.email in ~/.gitconfig. You can override it using review."gerrit_host.comany_name.com".username as documented in 'repo help upload'.
Nasser
>
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum