Russell King <rmk@arm.linux.org.uk> wrote: > The command in the subject prepends the log message with a blank line. > This ain't good because it messes up commit messages as per Linus' > requirements (the first line must be a summary.) The patch below should fix the problem. There is no point in writing the status information in a file which is read from stdin. -- Catalin Fix the log file when read from stdin Log messages read from stdin shouldn't have additional lines. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> diff --git a/cg-commit b/cg-commit --- a/cg-commit +++ b/cg-commit @@ -215,7 +215,7 @@ if tty -s; then fi fi else - cat >>$LOGMSG2 + cat >$LOGMSG2 fi # Remove heading and trailing blank lines. grep -v ^CG: $LOGMSG2 | git-stripspace >$LOGMSG - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Thu Jun 09 09:21:24 2005
This archive was generated by hypermail 2.1.8 : 2005-06-09 09:21:26 EST