From: Ian Jackson Date: Fri, 6 Jan 2017 17:50:08 +0000 (+0000) Subject: test suite: t-make-badcommit: Generate a commit we can fix up X-Git-Tag: archive/debian/2.16~11 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=b1492e1bf5ca414c4e540b969e3ad07a5ed13635 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 --- diff --git a/tests/lib b/tests/lib index cf7d4cfb..f2414ae4 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