This will make it possible to be stricter.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
}
t-git-fsck () {
- git fsck --no-dangling --strict || ${expect_fsck_fail-false}
+ git fsck --no-dangling --strict || ${expect_fsck_fail:+true} false
}
t-fscks () {
git update-ref refs/tags/$tag_name $badtag
mustfail 'multiple headers '$h' in signed tag object' $push_spec
+
+ expect_fsck_fail+=" $badtag"
done
done
perl -pe 's/^committer.*\n//' | \
git hash-object -w -t commit --stdin
)
+expect_fsck_fail+=" $badcommit"
git checkout -b broken $badcommit
prep unstable sid
mktag
prep_dm_mangle ''
mustsucceed $push_spec # succeeds
-# we generate some junk, so we must tolerate git-fsck complaining
-expect_fsck_fail=true
-
t-ok