diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2006-06-04 09:52:57 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2006-06-04 09:52:57 +0000 |
commit | 11a4c991c440ae69f9165493223c22d1e8512597 (patch) | |
tree | 9699800b9ad5d75c0dc7771ad24dc64cde04cc2c /usr.bin/cvs/commit.c | |
parent | 66ef516e5404c5db094b9fa2607166e65bd43556 (diff) |
sprinkle -n voodoo over the add, commit and import commands.
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 4a4bb408428..b4b33f4ca34 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.68 2006/06/01 20:00:52 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.69 2006/06/04 09:52:56 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -159,6 +159,9 @@ cvs_commit_local(struct cvs_file *cf) cvs_log(LP_TRACE, "cvs_commit_local(%s)", cf->file_path); cvs_file_classify(cf, NULL, 0); + if (cvs_noexec == 1) + return; + if (cf->file_type != CVS_FILE) fatal("cvs_commit_local: '%s' is not a file", cf->file_path); |