diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-06-20 13:18:19 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-06-20 14:29:38 +0100 |
commit | 61016923b2a47b0550e36ed5f5a929d401811b42 (patch) | |
tree | f5e897ffecb51ff1fe9921349cba84cf8e676740 | |
parent | 37dc8e5f1c9aec0d5b517a36ab465fc6c64155db (diff) |
test suite: gitattributes: Do not try to set working-tree-encoding to true
Part of the fix to #901900. This suppresses the sort-of-spurious test
failure which occurs because the working-tree-encoding attribute is
discovered and then set to an inappropriate value.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | tests/tests/gitattributes | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/tests/gitattributes b/tests/tests/gitattributes index 5be7d01..04c6b87 100755 --- a/tests/tests/gitattributes +++ b/tests/tests/gitattributes @@ -28,7 +28,14 @@ badattr1 () { badattr () { attrname=$1; shift - badattr1 $attrname-set $attrname + + case "$attrname" in + working-tree-encoding) ;; + *) + badattr1 $attrname-set $attrname + ;; + esac + badattr1 $attrname-unset -$attrname badattr1 $attrname-unspec \!$attrname local val |