summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-17 12:30:38 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-17 12:30:38 +0000
commit7a88b9a4054ffa6e79f3b1f7f608de08793e22d2 (patch)
tree7e45ac9bc725f8f3462c457cb1957ce82a971df0
parenta2b565b98cf2235619ec555c067d8828197c5986 (diff)
test suite: gitattributes: Test that checkout is good too
-rwxr-xr-xtests/tests/gitattributes7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/tests/gitattributes b/tests/tests/gitattributes
index a00c1d3..e6089bd 100755
--- a/tests/tests/gitattributes
+++ b/tests/tests/gitattributes
@@ -104,8 +104,12 @@ sfmt_setup () {
}
sums_check () {
- # caller should cd into working directory and set
+ # caller should cd into working directory, set
# $sums $branch
+ # and check out $branch
+
+ sha256sum af/* >../$sums.checkout
+ diff -U0 ../sums ../$sums.checkout
for f in af/*; do
git cat-file blob "refs/heads/$branch:$f" \
@@ -150,6 +154,7 @@ sfmt_import () {
t-dgit $dgitargs import-dsc ../$dscf +$branch
git checkout $branch
+ git reset --hard
sums_check