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

Re: running git as root

From
MNMarco Nelissen <marcone@xs4all.nl>
Date
Jun 14, 2009, 21:40 UTC
Message-ID
<3a3d9e520906141440p720df7c1l6e25b71899daaa7c@mail.gmail.com>
In-Reply-To
<20090614150851.6117@nanako3.lavabit.com>
On Sat, Jun 13, 2009 at 11:08 PM, Nanako Shiraishi<nanako3@lavabit.com> wrote:
Show 20 quoted lines
> Quoting Alex Riesen <raa.lkml@gmail.com>:
>
>> 2009/6/13 Marco Nelissen <marcone@xs4all.nl>:
>>> When running as root, git fails a number of test cases that expect it
>>> to fail on read-only repositories (for example 't0004-unwritable.sh').
>>> I was thinking of either changing the code so that it checks
>>> permissions itself when opening files as root, or add a prerequisite
>>> to those test cases so that they are skipped when running as root.
>>
>> There is such a prerequisite already (POSIXPERM), but what caused
>> you to run the _tests_ as root?
>>
>>> What would be the preferred way?
>>
>> Use the prerequisite would sound right when not the
>> strangeness of the idea.
>
> I think somebody needs to repost an old patch from the archive.
>
>    http://thread.gmane.org/gmane.comp.version-control.git/116729/focus=118385

That's almost identical to the patch I wanted to submit, except for the name 'SANITY', which doesn't make much sense I think.

Previous: Nanako Shiraishi
Message 7 of 7 in “running git as root”
  1. Marco NelissenJun 13, 2009
  2. Michael J GruberJun 13, 2009
  3. Marco NelissenJun 14, 2009
  4. Alex RiesenJun 13, 2009
  5. Marco NelissenJun 14, 2009
  6. Nanako ShiraishiJun 14, 2009
  7. Marco NelissenJun 14, 2009

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.