From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Git Mailing list <git@vger.kernel.org>
Subject: Re: [OT] how does "git review --setup" figure out my username?
Date: Sat, 31 Mar 2018 15:56:36 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.2.21.1803311555500.23345@localhost.localdomain> (raw)
In-Reply-To: <CACBZZX7wQChuEQeBHQzgg-XsMmmryB4qBXT9K4HxwxaSNe4UWg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1803 bytes --]
On Sat, 31 Mar 2018, Ævar Arnfjörð Bjarmason wrote:
> On Sat, Mar 31, 2018 at 9:04 PM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> >
> > (technically not a git question, but i kind of need to know the
> > answer to this quickly as i'm writing some documentation and this is
> > something i have to explain.)
> >
> > i cloned a repository (hyperledger fabric) which has a top-level
> > .gitreview file:
> >
> > [gerrit]
> > host=gerrit.hyperledger.org
> > port=29418
> > project=fabric
> >
> > and, as i read it, if i want to configure to use gerrit, an initial
> > invocation of "git review --setup" should do that for me, which it
> > appears to do, as it adds the following to .git/config:
> >
> > [remote "gerrit"]
> > url = ssh://rpjday@gerrit.hyperledger.org:29418/fabric
> > fetch = +refs/heads/*:refs/remotes/gerrit/*
> >
> > and copies over the commit-msg hook. so far, so good.
> >
> > but from where does it figure out the username (rpjday) to use when
> > configuring that remote? i have no gerrit configuration in my
> > .gitconfig file. however, i have configured gerrit at the hyperledger
> > end to use my SSH key, which is associated with my linux foundation ID
> > (rpjday) that i registered to start using that repo.
> >
> > is that where it gets the username from?
>
> I've never used gerrit, but from my skimming of
> https://www.mediawiki.org/wiki/Gerrit/git-review#Setting_up_git-review
> and
> https://www.mediawiki.org/wiki/Gerrit/Tutorial#Configuring_git-review
> it seems (to me) to say that it simply tries if your local loginname
> works on the remote. Is rpjday your loginname on this system?
yes, but it's just a fluke that i used the same user name in both
places ... what if i hadn't? which one would it have selected?
rday
next prev parent reply other threads:[~2018-03-31 19:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-31 19:04 [OT] how does "git review --setup" figure out my username? Robert P. J. Day
2018-03-31 19:37 ` Ævar Arnfjörð Bjarmason
2018-03-31 19:56 ` Robert P. J. Day [this message]
2018-03-31 20:10 ` Ævar Arnfjörð Bjarmason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.21.1803311555500.23345@localhost.localdomain \
--to=rpjday@crashcourse.ca \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox