From b1492e1bf5ca414c4e540b969e3ad07a5ed13635 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 6 Jan 2017 17:50:08 +0000 Subject: test suite: t-make-badcommit: Generate a commit we can fix up 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 --- tests/lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib b/tests/lib index cf7d4cf..f2414ae 100644 --- 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 -- cgit v1.2.3