I followed git-cvsimport documentation to port my legacy code to from CVS to git. Installed cvsps version 2.1 and added to path.
Ran git cvsimport -C <destination_folder> <project_folder_with_cvs>
Getting an error:
Unknown command: `server'
CVS commands are:
add Add a new file/directory to the repository
admin Administration front end for rcs
.
.
(Specify the --help option for a list of other help options)
Failed to read from server at D:\Git\mingw64/libexec/git-core\git-cvsimport line 420.
I am working in windows 10. Any clue why this error is shown?
git-cvsimport
now exits less noisily and prints an appropriate message when the installed cvs binary doesn't know the 'server
' subcommand; this happens whencvs
is./configure
'ed with--disable-server
.
This ticket mentions:
The '
server
' command has been replaced with the 'preload
' command.
All that is consistent with the git-cvsimport
man page:
git cvsimport
uses cvsps version 2, which is considered deprecated; it does not work with cvsps version 3 and later.
If you are performing a one-shot import of a CVS repository consider usingcvs2git
orcvs-fast-export
.
Try those latest tools instead.