summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-02-03 19:57:45 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-02-03 19:57:45 +0000
commit0c67d9afc6d66ce04da77c32d098e8a9eeef92eb (patch)
treef3825af42dfd02ed657330af42b728c56dd18f5f
parent0e44154d07661b916dbaf85028bd0e676b484079 (diff)
respect any -l option that might have been set in CVSROOT/modules;
-rw-r--r--usr.bin/cvs/checkout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c
index 9ec4e1c97b7..72666da1f52 100644
--- a/usr.bin/cvs/checkout.c
+++ b/usr.bin/cvs/checkout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: checkout.c,v 1.120 2008/02/03 18:42:32 joris Exp $ */
+/* $OpenBSD: checkout.c,v 1.121 2008/02/03 19:57:44 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -214,6 +214,9 @@ checkout_check_repository(int argc, char **argv)
if (!(mc->mc_flags & MODULE_ALIAS) || dflag != NULL)
module_repo_root = mc->mc_repo;
+ if (mc->mc_flags & MODULE_NORECURSE)
+ flags &= ~CR_RECURSE_DIRS;
+
if (dflag != NULL)
wdir = dflag;
else