chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
663d79c
)
test suite: gitattributes: Test that old macros are updated
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 20 Jun 2018 13:13:24 +0000
(14:13 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 20 Jun 2018 13:29:38 +0000
(14:29 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/gitattributes
patch
|
blob
|
history
diff --git
a/tests/tests/gitattributes
b/tests/tests/gitattributes
index 416206b21e4ff3bb08ebafbc2f212a74d4a2db26..0b361ada3d99310fec167eaef90c2531d85758cb 100755
(executable)
--- 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