diff options
author | joe <joe@FreeBSD.org> | 2001-12-24 23:00:18 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-12-24 23:00:18 +0800 |
commit | 9adad83945f04d5f2b9b043025a05a33b0ad6a69 (patch) | |
tree | 590b19b6cef923b759e7fc6923a67eee5670e90f /CVSROOT | |
parent | 9587db3873a4c1d04fab03ecced2a6643df19152 (diff) | |
download | freebsd-ports-gnome-9adad83945f04d5f2b9b043025a05a33b0ad6a69.tar.gz freebsd-ports-gnome-9adad83945f04d5f2b9b043025a05a33b0ad6a69.tar.zst freebsd-ports-gnome-9adad83945f04d5f2b9b043025a05a33b0ad6a69.zip |
Make sure that the user enters a commit message, and bomb out if
not. This doesn't fix all cases of this because cvs doesn't invoke
loginfo/logcheck if the log message is completely blank. Usually
there is an rcstemple in there though, so we'll catch most instances.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/logcheck | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CVSROOT/logcheck b/CVSROOT/logcheck index 66fcb1539cf7..f50bdd74fe82 100755 --- a/CVSROOT/logcheck +++ b/CVSROOT/logcheck @@ -99,6 +99,13 @@ while ($j >= 0) { } +# Make sure that there is some content in the log message. +# XXX Note that logcheck isn't evoked if the log message is +# completely empty. This is a bug in cvs. +my $log = "@log_in"; +die "Log message contains no content!\n" if $log =~ /^\s*$/; + + # Write the modified log file back out. my $tmpfile = $filename . "tmp"; open OUT, "> $tmpfile" or |