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

Re: How to force git to use authentication as author

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 14, 2011, 19:45 UTC
Message-ID
<20110714194552.GA14632@elie>
In-Reply-To
<CABPQNSY3qyQXO4hyM6xhHq2VYhK5369ihuqJ5PDAonN7+UpcGA@mail.gmail.com>
Hi,
Erik Faye-Lund wrote:
Show 8 quoted lines
> So let's step back a little bit. Why do you want the author to be
> identical to the authenticated user in the first place? Is it to be
> able to *prove* (i.e not trust the users that push) who wrote what
> code? If so, let's me first tell you that giving someone push-access
> while not trusting them is a bit crazy. But if you're happy with being
> a bit crazy, you'd might want to somehow cryptographically sign the
> commits instead. I'd go for PGP-signing the patch-id, and putting that
> in a git-note.

Let's suppose you want to be able to decide who was to blame for the latest breakage, not on a per-commit level but on a per-push level. Then that seems quite doable to me through simpler means, on the server side. See

 http://sitaramc.github.com/gitolite/doc/3-faq-tips-etc.html#_better_logging

Hope that helps. Jonathan

Previous: Erik Faye-Lund
Message 15 of 15 in “How to force git to use authentication as author”
  1. J. BakshiJul 14, 2011
  2. Ævar Arnfjörð BjarmasonJul 14, 2011
  3. J. BakshiJul 14, 2011
  4. Carlos Martín NietoJul 14, 2011
  5. J. BakshiJul 14, 2011
  6. Carlos Martín NietoJul 14, 2011
  7. Erik Faye-LundJul 14, 2011
  8. J. BakshiJul 14, 2011
  9. Carlos Martín NietoJul 14, 2011
  10. J. BakshiJul 14, 2011
  11. Ferry HubertsJul 14, 2011
  12. Jakub NarebskiJul 14, 2011
  13. J. BakshiJul 14, 2011
  14. Erik Faye-LundJul 14, 2011
  15. Jonathan NiederJul 14, 2011

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.