diff options
author | jdp <jdp@FreeBSD.org> | 1996-10-01 00:51:27 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1996-10-01 00:51:27 +0000 |
commit | af1c48e2152c0d2371d8e9b67ce8473caf116fda (patch) | |
tree | b0cd8152dbdb8510280b1a02b59efa11068a83c8 /contrib/cvs/src | |
parent | 1c0a68465ce4299b095809def157040f1dd26ff6 (diff) | |
download | FreeBSD-src-af1c48e2152c0d2371d8e9b67ce8473caf116fda.zip FreeBSD-src-af1c48e2152c0d2371d8e9b67ce8473caf116fda.tar.gz |
Fix a bug in the "cvs init" command. It ignored the global "-H" option.
I.e., "cvs -H init" went ahead and initialized the repository, and did
not print out a usage message. Not nice.
Also added the "init" command to the list that comes out when you type
"cvs --help-commands". There is still not a word about it in the manual
page.
Yes, I am sending these fixes to the FSF.
Diffstat (limited to 'contrib/cvs/src')
-rw-r--r-- | contrib/cvs/src/main.c | 1 | ||||
-rw-r--r-- | contrib/cvs/src/mkmodules.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/contrib/cvs/src/main.c b/contrib/cvs/src/main.c index daa0230..e7ffe56 100644 --- a/contrib/cvs/src/main.c +++ b/contrib/cvs/src/main.c @@ -210,6 +210,7 @@ static const char *const cmd_usage[] = " history Shows status of files and users\n", " import Import sources into CVS, using vendor branches\n", " export Export sources from CVS, similar to checkout\n", + " init Initialize a new CVS repository\n", " log Prints out 'rlog' information for files\n", #ifdef AUTH_CLIENT_SUPPORT " login Prompt for password for authenticating server.\n", diff --git a/contrib/cvs/src/mkmodules.c b/contrib/cvs/src/mkmodules.c index bdd27eb..890c3a4 100644 --- a/contrib/cvs/src/mkmodules.c +++ b/contrib/cvs/src/mkmodules.c @@ -644,7 +644,7 @@ init (argc, argv) umask (cvsumask); - if (argc > 1) + if (argc == -1 || argc > 1) usage (init_usage); if (client_active) |