From: Ian Jackson Date: Tue, 17 Jan 2017 12:30:38 +0000 (+0000) Subject: test suite: gitattributes: Test that checkout is good too X-Git-Tag: archive/debian/3.5~15 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7a88b9a4054ffa6e79f3b1f7f608de08793e22d2;hp=a2b565b98cf2235619ec555c067d8828197c5986;p=dgit.git test suite: gitattributes: Test that checkout is good too --- diff --git a/tests/tests/gitattributes b/tests/tests/gitattributes index a00c1d36..e6089bd9 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