diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2007-09-07 19:36:06 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2007-09-07 19:36:06 +0000 |
commit | 6fc08d4f040c12de5dca6c54a0dffc7e434aeb7b (patch) | |
tree | a20fd79a9515cf2d0ec25e283d4ffc494ec57777 /usr.bin/cvs/client.c | |
parent | 62fc1b4a641d37a48a5d409872ac6d05dde89661 (diff) |
Added support for single file checkout.
OK joris@
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r-- | usr.bin/cvs/client.c | 6 |
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", |