diff options
author | krapht <krapht@cvs.openbsd.org> | 2004-11-09 20:59:08 +0000 |
---|---|---|
committer | krapht <krapht@cvs.openbsd.org> | 2004-11-09 20:59:08 +0000 |
commit | e7a10f30692ed4f4500051860d655fafa749d8e2 (patch) | |
tree | 3a60ec595ea8f655b49abd6b88550db09bb7d114 /usr.bin | |
parent | 051d32a1b1adbac60839414e929bcfad207b513a (diff) |
a bit more sense
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/add.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c index 2f92b18196c..bd4f5b52760 100644 --- a/usr.bin/cvs/add.c +++ b/usr.bin/cvs/add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: add.c,v 1.4 2004/08/13 13:27:52 jfb Exp $ */ +/* $OpenBSD: add.c,v 1.5 2004/11/09 20:59:07 krapht Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -121,9 +121,10 @@ cvs_add_file(CVSFILE *cf, void *arg) root = CVS_DIR_ROOT(cf); - cvs_sendreq(root, CVS_REQ_ISMODIFIED, cf->cf_name); - - if (cvs_cmdop == CVS_OP_SERVER) { + if (root->cr_method != CVS_METHOD_LOCAL) { + cvs_sendreq(root, CVS_REQ_ISMODIFIED, cf->cf_name); + } + else { cvs_log(LP_INFO, "scheduling file `%s' for addition", cf->cf_name); cvs_log(LP_INFO, "use `%s commit' to add this file permanently", |