From: Nanako Shiraishi Date: Sun, 14 Jun 2009 06:08:51 GMT Subject: Re: running git as root Message-ID: <20090614150851.6117@nanako3.lavabit.com> In-Reply-To: <81b0412b0906131049v60cfbc9bm3fd26cc25acc2cd4@mail.gmail.com> Quoting Alex Riesen : > 2009/6/13 Marco Nelissen : >> 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 -- Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/