git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [OT] how does "git review --setup" figure out my username?
@ 2018-03-31 19:04 Robert P. J. Day
  2018-03-31 19:37 ` Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2018-03-31 19:04 UTC (permalink / raw)
  To: Git Mailing list


  (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?

rday

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-31 20:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2018-03-31 20:10     ` Ævar Arnfjörð Bjarmason

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).