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.
This commit is contained in:
parent
1c0a68465c
commit
af1c48e215
@ -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",
|
||||
|
@ -644,7 +644,7 @@ init (argc, argv)
|
||||
|
||||
umask (cvsumask);
|
||||
|
||||
if (argc > 1)
|
||||
if (argc == -1 || argc > 1)
|
||||
usage (init_usage);
|
||||
|
||||
if (client_active)
|
||||
|
Loading…
Reference in New Issue
Block a user