From: Marco Nelissen <marcone@xs4all.nl>
To: git@vger.kernel.org
Subject: Re: running git as root
Date: Sat, 13 Jun 2009 18:41:51 -0700 [thread overview]
Message-ID: <3a3d9e520906131841i2e67994fqf323140f95c37d5e@mail.gmail.com> (raw)
In-Reply-To: <81b0412b0906131049v60cfbc9bm3fd26cc25acc2cd4@mail.gmail.com>
On Sat, Jun 13, 2009 at 10:49 AM, Alex Riesen<raa.lkml@gmail.com> wrote:
> 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?
POSIXPERM doesn't appear to be quite right for this. For example, the
't1301-shared-repo.sh' test has the POSIXPERM prereq, but it runs fine
as root, because it merely validates that permissions are preserved.
next prev parent reply other threads:[~2009-06-14 1:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-13 15:25 running git as root Marco Nelissen
2009-06-13 15:42 ` Michael J Gruber
2009-06-14 1:42 ` Marco Nelissen
2009-06-13 17:49 ` Alex Riesen
2009-06-14 1:41 ` Marco Nelissen [this message]
2009-06-14 6:08 ` Nanako Shiraishi
2009-06-14 21:40 ` Marco Nelissen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3a3d9e520906131841i2e67994fqf323140f95c37d5e@mail.gmail.com \
--to=marcone@xs4all.nl \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).