From: Jonathan Nieder Date: Tue, 15 Mar 2011 10:08:46 GMT Subject: [RFC/PATCH 0/2] tests: stop hard-coding the list of GIT_* vars to scrub Message-ID: <20110315100846.GB3923@elie> In-Reply-To: <20110315073718.GB11754@sigill.intra.peff.net> Jeff King wrote: > According to posix, just running "set" provides an unambiguous, > parseable output. The problem is that it's actual shell, so it's a > little tricky to parse (it's single-quoted, and you have to follow > values across embedded newlines). So it's probably not worth the > headache. > > Having a big list of "clear these variables" is probably not the end of > the world. Here's one way (using perl), for what it's worth. Jonathan Nieder (2): tests: stop worrying about obsolete environment variables tests: scrub environment of GIT_* variables t/test-lib.sh | 30 +++++------------------------- 1 files changed, 5 insertions(+), 25 deletions(-)