diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-06-20 14:13:24 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-06-20 14:29:38 +0100 |
commit | 0de90d6589a4e11bdae9a6f8f1bab65156ea7c19 (patch) | |
tree | 897a3306990728ea90d82669449dd74fe3c83b22 /tests/tests | |
parent | 663d79cdcc8fe536350c05fc681b445502be4cfe (diff) |
test suite: gitattributes: Test that old macros are updated
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests')
-rwxr-xr-x | tests/tests/gitattributes | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/tests/gitattributes b/tests/tests/gitattributes index 416206b..0b361ad 100755 --- a/tests/tests/gitattributes +++ b/tests/tests/gitattributes @@ -262,4 +262,24 @@ sums_check cd .. +t-dgit-warn-check 0 -cdgit.default.setup-gitattributes=false \ + clone $p sid $p.clone.old + +cd $p.clone.old + +mkdir -p .git/info +cat >.git/info/attributes <<'END' +* dgit-defuse-attrs +[attr]dgit-defuse-attrs -text -eol -crlf -ident -filter +# ^ see GITATTRIBUTES in dgit(7) and dgit setup-new-tree in dgit(1) +END + +t-dgit setup-gitattributes +git reset --hard + +sums=sums.old +sums_check + +cd .. + t-ok |