Re: running git as root
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jun 13, 2009, 17:49 UTC
- Message-ID
- <81b0412b0906131049v60cfbc9bm3fd26cc25acc2cd4@mail.gmail.com>
- In-Reply-To
- <3a3d9e520906130825k25815c9atafde301d9fbc1da2@mail.gmail.com>
2009/6/13 Marco Nelissen <marcone@xs4all.nl>:
Show 5 quoted lines
> 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.