chiark / gitweb /
test suite: t-make-badcommit: Generate a commit we can fix up
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 17:50:08 +0000 (17:50 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2017 18:32:14 +0000 (18:32 +0000)
This is very like a commit generated by #849041.  The wrongness is the
same.  The difference is that it's not in a dgit-generated merge, but
the fixup script doesn't care about that.

The existing test case which uses this (drs-push-rejects) still sees
badness and is therefore still happy.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib

index cf7d4cfb008fd3a3f87a60d4e67f02a45fc635c5..f2414ae434c10ed90d256931fdc6192ae91d9234 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -901,7 +901,7 @@ t-gbp-example-prep () {
 t-make-badcommit () {
        badcommit=$(
                git cat-file commit HEAD | \
-               perl -pe 's/^committer.*\n//' | \
+               perl -pe 's/^committer /commiter /' | \
                git hash-object -w -t commit --stdin
        )
        t-expect-fsck-fail $badcommit