Skip to content

Commit 5484289

Browse files
flichtenheldJunio C Hamano
authored andcommitted
cvsserver: Note that CVS_SERVER can also be specified as method variable
Reasonably new versions of the cvs CLI client allow one to specifiy CVS_SERVER as a method variable directly in CVSROOT. This is way more convinient than using an environment variable since it gets saved in CVS/Root. Since I only discovered this by accident I guess there might be others out there that learnt CVS on the 1.11 series (or even earlier) and profit from such a note about cvs improvements in the last couple years. Signed-off-by: Frank Lichtenheld <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 893c365 commit 5484289

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Documentation/git-cvsserver.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,17 @@ looks like
5757
------
5858
No special setup is needed for SSH access, other than having GIT tools
5959
in the PATH. If you have clients that do not accept the CVS_SERVER
60-
env variable, you can rename git-cvsserver to cvs.
60+
environment variable, you can rename git-cvsserver to cvs.
61+
62+
Note: Newer cvs versions (>= 1.12.11) also support specifying
63+
CVS_SERVER directly in CVSROOT like
64+
65+
------
66+
cvs -d ":ext;CVS_SERVER=git-cvsserver:user@server/path/repo.git" co <HEAD_name>
67+
------
68+
This has the advantage that it will be saved in your 'CVS/Root' files and
69+
you don't need to worry about always setting the correct environment
70+
variable.
6171
--
6272
2. For each repo that you want accessible from CVS you need to edit config in
6373
the repo and add the following section.

0 commit comments

Comments
 (0)