@matheusbsbs / matheus-bagliano / commits / 0fc8573d4b
Fork 0

git-cvsserver asciidoc formatting tweaks

No content change here. html output improved. man output changed. Signed-off-by: Francis Daly <francis@daoine.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Francis Daly committed Jun 7, 2006 at 23:28 UTC 0fc8573d4b039f54f3c8a70f756cfe63f8129f7b
1 file changed +31 -18
Documentation/git-cvsserver.txt
+31 -18
@@ -36,49 +36,62 @@ INSTALLATION
36
37 1. If you are going to offer anonymous CVS access via pserver, add a line in
38 /etc/inetd.conf like
39 -
39 ++
40 +--
41 +------
42 cvspserver stream tcp nowait nobody git-cvsserver pserver
43
42 - Note: In some cases, you need to pass the 'pserver' argument twice for
43 - git-cvsserver to see it. So the line would look like
44 +------
45 +Note: In some cases, you need to pass the 'pserver' argument twice for
46 +git-cvsserver to see it. So the line would look like
47
48 +------
49 cvspserver stream tcp nowait nobody git-cvsserver pserver pserver
50
47 - No special setup is needed for SSH access, other than having GIT tools
48 - in the PATH. If you have clients that do not accept the CVS_SERVER
49 - env variable, you can rename git-cvsserver to cvs.
50 -
51 +------
52 +No special setup is needed for SSH access, other than having GIT tools
53 +in the PATH. If you have clients that do not accept the CVS_SERVER
54 +env variable, you can rename git-cvsserver to cvs.
55 +--
56 2. For each repo that you want accessible from CVS you need to edit config in
57 the repo and add the following section.
53 -
58 ++
59 +--
60 +------
61 [gitcvs]
62 enabled=1
63 # optional for debugging
64 logfile=/path/to/logfile
65
59 - Note: you need to ensure each user that is going to invoke git-cvsserver has
60 - write access to the log file and to the git repository. When offering anon
61 - access via pserver, this means that the nobody user should have write access
62 - to at least the sqlite database at the root of the repository.
63 -
66 +------
67 +Note: you need to ensure each user that is going to invoke git-cvsserver has
68 +write access to the log file and to the git repository. When offering anon
69 +access via pserver, this means that the nobody user should have write access
70 +to at least the sqlite database at the root of the repository.
71 +--
72 3. On the client machine you need to set the following variables.
73 CVSROOT should be set as per normal, but the directory should point at the
74 appropriate git repo. For example:
75 ++
76 +--
77 +For SSH access, CVS_SERVER should be set to git-cvsserver
78
68 - For SSH access, CVS_SERVER should be set to git-cvsserver
69 -
70 - Example:
79 +Example:
80
81 +------
82 export CVSROOT=:ext:user@server:/var/git/project.git
83 export CVS_SERVER=git-cvsserver
74 -
84 +------
85 +--
86 4. For SSH clients that will make commits, make sure their .bashrc file
87 sets the GIT_AUTHOR and GIT_COMMITTER variables.
88
89 5. Clients should now be able to check out the project. Use the CVS 'module'
90 name to indicate what GIT 'head' you want to check out. Example:
80 -
91 ++
92 +------
93 cvs co -d project-master master
94 +------
95
96 Eclipse CVS Client Notes
97 ------------------------