Fix the log file when read from stdin Log messages read from stdin shouldn't have additional lines. Signed-off-by: Catalin Marinas 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