From 8b1ae678a33e2d1ccf3080977b692a59acad9b50 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 8 May 2011 12:31:02 +0200 Subject: Do not strip empty lines / trailing spaces from a commit message template Templates should be just that: A form that the user fills out, and forms have blanks. If people are attached to not having extra whitespace in the editor, they can simply clean up their templates. Added test with editor adding even more whitespace. Signed-off-by: Boris Faure Based-on-patch-by:Sebastian Schuberth Signed-off-by: Junio C Hamano --- t/t7500/add-whitespaced-content | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 t/t7500/add-whitespaced-content (limited to 't/t7500') diff --git a/t/t7500/add-whitespaced-content b/t/t7500/add-whitespaced-content new file mode 100755 index 0000000000..ccf07c61a4 --- /dev/null +++ b/t/t7500/add-whitespaced-content @@ -0,0 +1,8 @@ +#!/bin/sh +sed -e 's/|$//' >>"$1" <<\EOF + + | +commit message | + +EOF +exit 0 -- cgit v1.2.3