]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib.sh
tests: suppress system gitattributes
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 15 Mar 2011 09:05:10 +0000 (04:05 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Mar 2011 19:23:29 +0000 (12:23 -0700)
commit3c995beb14b7aef9fa724cde9d2b7a4ea4ae53cc
tree82c9fcbfda182ac72c7c6a3ba6c74c4ed93ca1a1
parent67e6d817945202427977cf950b5ccbad3060e9e4
tests: suppress system gitattributes

Set GIT_ATTR_NOSYSTEM in test-lib to make tests more reliable in two
ways:

 - an invalid GIT_ATTR_NOSYSTEM setting should not cause tests to fail
   with "fatal: bad config value for 'GIT_ATTR_NOSYSTEM'".

 - /etc/gitattributes should not change the outcome of tests.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Improved-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh