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

How to force git to use authentication as author

From
JBJ. Bakshi <joydeep@infoservices.in>
Date
Jul 14, 2011, 10:36 UTC
Message-ID
<20110714160638.065b6542@shiva.selfip.org>
Hello,
I have setup a git repo which is protected with user authentication set by apache it self.

<Location /git> AuthType Basic # Message to give to the committer AuthName "Write access requires a password" # File listing users with write (commit) access AuthUserFile /home/git/PASSWD Require valid-user </Location>

Now users are required to use their authentication as per /home/git/PASSWD file ( generated by htpasswd) . How can I force git to use the username as define at /home/git/PASSWD as the author name for git commit ?
Thanks
Next: Ævar Arnfjörð Bjarmason
Message 1 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.