summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/update.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-21 18:32:11 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-21 18:32:11 +0000
commit3d46960173efa81ae236b33be993ba399a6f0b38 (patch)
treec8fa65755dfd55440f0bb987516df0f4937e1f0b /usr.bin/cvs/update.c
parente356bb43f71c5fa2e2b0ee887e8527dd992ba45a (diff)
modify the directory handling portion to behave like the one in add.c,
which does not attempt to send data when running on a local repository. This will be needed to support local repository access
Diffstat (limited to 'usr.bin/cvs/update.c')
-rw-r--r--usr.bin/cvs/update.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index 503b507c7ad..4637c0144bf 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.12 2004/12/14 22:30:48 jfb Exp $ */
+/* $OpenBSD: update.c,v 1.13 2004/12/21 18:32:10 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -146,12 +146,15 @@ cvs_update_file(CVSFILE *cf, void *arg)
root = CVS_DIR_ROOT(cf);
repo = CVS_DIR_REPO(cf);
- if ((root->cr_method != CVS_METHOD_LOCAL) && (cf->cf_type == DT_DIR)) {
- if (cf->cf_cvstat == CVS_FST_UNKNOWN)
- ret = cvs_sendreq(root, CVS_REQ_QUESTIONABLE,
- CVS_FILE_NAME(cf));
- else
- ret = cvs_senddir(root, cf);
+ if (cf->cf_type == DT_DIR) {
+ if (root->cr_method != CVS_METHOD_LOCAL) {
+ if (cf->cf_cvstat == CVS_FST_UNKNOWN)
+ ret = cvs_sendreq(root, CVS_REQ_QUESTIONABLE,
+ CVS_FILE_NAME(cf));
+ else
+ ret = cvs_senddir(root, cf);
+ }
+
return (ret);
}