[PATCH 2/3] tests: suppress global and system gitattributes
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 15, 2011, 06:56 UTC
- Message-ID
- <20110315065643.GB29530@elie>
- In-Reply-To
- <20110315064909.GA25738@elie>
Set GIT_ATTR_NOGLOBAL and GIT_ATTR_NOSYSTEM in test-lib to make tests more reliable in two ways:
- an invalid GIT_ATTR_NOGLOBAL or GIT_ATTR_NOSYSTEM setting should not cause tests to fail with
fatal: bad config value for 'GIT_ATTR_NOGLOBAL'
- /etc/gitattributes should not change the outcome of tests.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> --- t/test-lib.sh | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh index 0fdc541..8ae03c7 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -955,7 +955,10 @@ GIT_TEMPLATE_DIR="$GIT_BUILD_DIR"/templates/blt unset GIT_CONFIG GIT_CONFIG_NOSYSTEM=1 GIT_CONFIG_NOGLOBAL=1 -export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR GIT_CONFIG_NOSYSTEM GIT_CONFIG_NOGLOBAL +GIT_ATTR_NOSYSTEM=1 +GIT_ATTR_NOGLOBAL=1 +export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR +export GIT_CONFIG_NOSYSTEM GIT_CONFIG_NOGLOBAL GIT_ATTR_NOSYSTEM GIT_ATTR_NOGLOBAL . "$GIT_BUILD_DIR"/GIT-BUILD-OPTIONS
-- 1.7.4.1