[PATCH] tests: Make sure that git does not access $HOME

John Keeping john at keeping.me.uk
Mon Apr 8 22:38:17 CEST 2013


On Mon, Apr 08, 2013 at 10:35:09PM +0200, Jason A. Donenfeld wrote:
> On Mon, Apr 8, 2013 at 10:32 PM, John Keeping <john at keeping.me.uk> wrote:
> > Can we avoid a pipe here and use a temporary file instead?
> 
> Sure, no problem. Why do you prefer a temporary file over a pipe?

The pipe hides the exit status of whatever is on its LHS, so if
cgit/strace crashes or exits with an error, piping the output completely
loses that, which is particularly bad if we're then grep'ing for a
negative.




More information about the CGit mailing list