This patch fixes the problem where a vi session is invoked on the client
remotely when the client does not provide a message after commit.
Please include in cvs ASAP.
Thanks.
--
John Allen, Email: mailto:[EMAIL PROTECTED]
diff -ru cvs-1.11.2-orig/src/commit.c cvs-1.11.2/src/commit.c
--- cvs-1.11.2-orig/src/commit.c 2001-08-24 18:47:02.000000000 +0100
+++ cvs-1.11.2/src/commit.c 2002-11-29 14:46:13.000000000 +0000
@@ -499,7 +499,14 @@
/* We always send some sort of message, even if empty. */
/* FIXME: is that true? There seems to be some code in do_editor
which can leave the message NULL. */
- option_with_arg ("-m", saved_message);
+ if (saved_message)
+ {
+ option_with_arg ("-m", saved_message);
+ }
+ else
+ {
+ option_with_arg ("-m", "");
+ }
/* OK, now process all the questionable files we have been saving
up. */