From a066adb39146fd2c12a18a4232cbdae9176fbe7c Mon Sep 17 00:00:00 2001 From: joris Date: Fri, 12 Jan 2007 18:27:18 +0000 Subject: if we have no files to be commited, stop commiting. --- usr.bin/cvs/commit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin/cvs/commit.c') 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 * Copyright (c) 2006 Xavier Santolaria @@ -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); -- cgit v1.2.3-59-g8ed1b