diff options
author | 2007-01-12 18:27:18 +0000 | |
---|---|---|
committer | 2007-01-12 18:27:18 +0000 | |
commit | a066adb39146fd2c12a18a4232cbdae9176fbe7c (patch) | |
tree | 34939806d07a38f8d863b38d4bad9e931096ce73 /usr.bin/cvs/commit.c | |
parent | and thou shalt not leak memory when removing entries (diff) | |
download | wireguard-openbsd-a066adb39146fd2c12a18a4232cbdae9176fbe7c.tar.xz wireguard-openbsd-a066adb39146fd2c12a18a4232cbdae9176fbe7c.zip |
if we have no files to be commited, stop commiting.
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index da3b640d4c4..afd19bb8b66 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.91 2007/01/12 17:25:33 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.92 2007/01/12 18:27:18 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -102,6 +102,9 @@ cvs_commit(int argc, char **argv) fatal("%d conflicts found, please correct these first", conflicts_found); + if (TAILQ_EMPTY(&files_affected)) + return (0); + if (logmsg == NULL && cvs_server_active == 0) { logmsg = cvs_logmsg_create(&files_added, &files_removed, &files_modified); |