diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh
index de38c7f7aab16a0c2766ef020a3fc03fadece555..e75153bdea05d2e34570aaf03fbb3902694ddedf 100755 (executable)
--- a/t/t0003-attributes.sh
+++ b/t/t0003-attributes.sh
echo "d/* test=a/b/d/*"
echo "d/yes notest"
) >a/b/.gitattributes
echo "d/* test=a/b/d/*"
echo "d/yes notest"
) >a/b/.gitattributes
+ (
+ echo "global test=global"
+ ) >"$HOME"/global-gitattributes
'
'
'
'
+test_expect_success 'core.attributesfile' '
+ attr_check global unspecified &&
+ git config core.attributesfile "$HOME/global-gitattributes" &&
+ attr_check global global &&
+ git config core.attributesfile "~/global-gitattributes" &&
+ attr_check global global &&
+ echo "global test=precedence" >> .gitattributes &&
+ attr_check global precedence
+'
+
test_expect_success 'attribute test: read paths from stdin' '
cat <<EOF > expect
test_expect_success 'attribute test: read paths from stdin' '
cat <<EOF > expect