From 7a88b9a4054ffa6e79f3b1f7f608de08793e22d2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 17 Jan 2017 12:30:38 +0000 Subject: test suite: gitattributes: Test that checkout is good too --- tests/tests/gitattributes | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3