Skip to content

tests: stop hard-coding the list of GIT_* vars to scrub

Jonathan Nieder git 1 version In review

Get series with b4
b4 am 20110315100846.GB3923@elie

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tests: stop worrying about obsolete environment variablest/test-lib.sh+0 -70 replies
2/2tests: scrub environment of GIT_* variablest/test-lib.sh+5 -182 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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(-)