git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[OT] how does "git review --setup" figure out my username?

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Mar 31, 2018, 19:04 UTC
Message-ID
<alpine.LFD.2.21.1803311453250.21368@localhost.localdomain>
  (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
Next: Ævar Arnfjörð Bjarmason
Message 1 of 4 in “[OT] how does "git review --setup" figure out my username?”
  1. Robert P. J. DayMar 31, 2018
  2. Ævar Arnfjörð BjarmasonMar 31, 2018
  3. Robert P. J. DayMar 31, 2018
  4. Ævar Arnfjörð BjarmasonMar 31, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.