summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index 52aca71..cf7d4cf 100644
--- a/tests/lib
+++ b/tests/lib
@@ -898,6 +898,15 @@ t-gbp-example-prep () {
remotes/dgit/dgit/sid
}
+t-make-badcommit () {
+ badcommit=$(
+ git cat-file commit HEAD | \
+ perl -pe 's/^committer.*\n//' | \
+ git hash-object -w -t commit --stdin
+ )
+ t-expect-fsck-fail $badcommit
+}
+
t-commit () {
local msg=$1
v=${2:-${majorv:-1}.$revision}