tests: stop hard-coding the list of GIT_* vars to scrub
Get series with b4
b4 am 20110315100846.GB3923@elieVersions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tests: stop worrying about obsolete environment variablest/ | +0 | 0 replies | |
| 2/2 | tests: scrub environment of GIT_* variablest/ | +5 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC/PATCH 0/2] tests: stop hard-coding the list of GIT_* vars to scrub
Quoted 8 lines · Jeff King
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(-)