}
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" \
t-dgit $dgitargs import-dsc ../$dscf +$branch
git checkout $branch
+ git reset --hard
sums_check