summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/client.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-07 19:36:06 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-07 19:36:06 +0000
commit6fc08d4f040c12de5dca6c54a0dffc7e434aeb7b (patch)
treea20fd79a9515cf2d0ec25e283d4ffc494ec57777 /usr.bin/cvs/client.c
parent62fc1b4a641d37a48a5d409872ac6d05dde89661 (diff)
Added support for single file checkout.
OK joris@
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r--usr.bin/cvs/client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c
index 0bfcfbdbd46..c93d95bbadc 100644
--- a/usr.bin/cvs/client.c
+++ b/usr.bin/cvs/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.76 2007/09/07 19:18:41 tobias Exp $ */
+/* $OpenBSD: client.c,v 1.77 2007/09/07 19:36:05 tobias Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -398,7 +398,9 @@ cvs_client_senddir(const char *dir)
cvs_get_repository_path(dir, repo, MAXPATHLEN);
- if (cvs_cmdop != CVS_OP_RLOG)
+ if (cvs_cmdop == CVS_OP_CHECKOUT && strcmp(dir, "."))
+ return;
+ else if (cvs_cmdop != CVS_OP_RLOG)
cvs_client_send_request("Directory %s\n%s", dir, repo);
(void)xsnprintf(fpath, MAXPATHLEN, "%s/%s",