chiark / gitweb /
dgit-badcommit-fixup: Debugging (commented out)
[dgit.git] / tests / lib
index 52aca71b6e27cb5818bba3f040f1f5bef76aca19..f2414ae434c10ed90d256931fdc6192ae91d9234 100644 (file)
--- 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 /commiter /' | \
+               git hash-object -w -t commit --stdin
+       )
+       t-expect-fsck-fail $badcommit
+}
+
 t-commit () {
        local msg=$1
        v=${2:-${majorv:-1}.$revision}