@matheusbsbs / matheus-bagliano / commits / 3c995beb14
Fork 0

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>

Jonathan Nieder committed Mar 15, 2011 at 04:05 UTC 3c995beb14b7aef9fa724cde9d2b7a4ea4ae53cc
1 file changed +2 -1
t/test-lib.sh
+2 -1
@@ -948,7 +948,8 @@ GIT_TEMPLATE_DIR="$GIT_BUILD_DIR"/templates/blt
948 unset GIT_CONFIG
949 GIT_CONFIG_NOSYSTEM=1
950 GIT_CONFIG_NOGLOBAL=1
951 -export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR GIT_CONFIG_NOSYSTEM GIT_CONFIG_NOGLOBAL
951 +GIT_ATTR_NOSYSTEM=1
952 +export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR GIT_CONFIG_NOSYSTEM GIT_CONFIG_NOGLOBAL GIT_ATTR_NOSYSTEM
953
954 . "$GIT_BUILD_DIR"/GIT-BUILD-OPTIONS
955