Autogenerated HTML docs for v1.7.4.1-176-g501cc
[git/jnareb-git.git] / git-cvsserver.html
blob7b23128e5f7084a2695655546ae1f905a6a62734
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <meta name="generator" content="AsciiDoc 8.4.5" />
7 <title>git-cvsserver(1)</title>
8 <style type="text/css">
9 /* Debug borders */
10 p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
12 border: 1px solid red;
16 body {
17 margin: 1em 5% 1em 5%;
20 a {
21 color: blue;
22 text-decoration: underline;
24 a:visited {
25 color: fuchsia;
28 em {
29 font-style: italic;
30 color: navy;
33 strong {
34 font-weight: bold;
35 color: #083194;
38 tt {
39 color: navy;
42 h1, h2, h3, h4, h5, h6 {
43 color: #527bbd;
44 font-family: sans-serif;
45 margin-top: 1.2em;
46 margin-bottom: 0.5em;
47 line-height: 1.3;
50 h1, h2, h3 {
51 border-bottom: 2px solid silver;
53 h2 {
54 padding-top: 0.5em;
56 h3 {
57 float: left;
59 h3 + * {
60 clear: left;
63 div.sectionbody {
64 font-family: serif;
65 margin-left: 0;
68 hr {
69 border: 1px solid silver;
72 p {
73 margin-top: 0.5em;
74 margin-bottom: 0.5em;
77 ul, ol, li > p {
78 margin-top: 0;
81 pre {
82 padding: 0;
83 margin: 0;
86 span#author {
87 color: #527bbd;
88 font-family: sans-serif;
89 font-weight: bold;
90 font-size: 1.1em;
92 span#email {
94 span#revnumber, span#revdate, span#revremark {
95 font-family: sans-serif;
98 div#footer {
99 font-family: sans-serif;
100 font-size: small;
101 border-top: 2px solid silver;
102 padding-top: 0.5em;
103 margin-top: 4.0em;
105 div#footer-text {
106 float: left;
107 padding-bottom: 0.5em;
109 div#footer-badges {
110 float: right;
111 padding-bottom: 0.5em;
114 div#preamble {
115 margin-top: 1.5em;
116 margin-bottom: 1.5em;
118 div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
119 div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
120 div.admonitionblock {
121 margin-top: 1.5em;
122 margin-bottom: 1.5em;
124 div.admonitionblock {
125 margin-top: 2.5em;
126 margin-bottom: 2.5em;
129 div.content { /* Block element content. */
130 padding: 0;
133 /* Block element titles. */
134 div.title, caption.title {
135 color: #527bbd;
136 font-family: sans-serif;
137 font-weight: bold;
138 text-align: left;
139 margin-top: 1.0em;
140 margin-bottom: 0.5em;
142 div.title + * {
143 margin-top: 0;
146 td div.title:first-child {
147 margin-top: 0.0em;
149 div.content div.title:first-child {
150 margin-top: 0.0em;
152 div.content + div.title {
153 margin-top: 0.0em;
156 div.sidebarblock > div.content {
157 background: #ffffee;
158 border: 1px solid silver;
159 padding: 0.5em;
162 div.listingblock > div.content {
163 border: 1px solid silver;
164 background: #f4f4f4;
165 padding: 0.5em;
168 div.quoteblock {
169 padding-left: 2.0em;
170 margin-right: 10%;
172 div.quoteblock > div.attribution {
173 padding-top: 0.5em;
174 text-align: right;
177 div.verseblock {
178 padding-left: 2.0em;
179 margin-right: 10%;
181 div.verseblock > div.content {
182 white-space: pre;
184 div.verseblock > div.attribution {
185 padding-top: 0.75em;
186 text-align: left;
188 /* DEPRECATED: Pre version 8.2.7 verse style literal block. */
189 div.verseblock + div.attribution {
190 text-align: left;
193 div.admonitionblock .icon {
194 vertical-align: top;
195 font-size: 1.1em;
196 font-weight: bold;
197 text-decoration: underline;
198 color: #527bbd;
199 padding-right: 0.5em;
201 div.admonitionblock td.content {
202 padding-left: 0.5em;
203 border-left: 2px solid silver;
206 div.exampleblock > div.content {
207 border-left: 2px solid silver;
208 padding: 0.5em;
211 div.imageblock div.content { padding-left: 0; }
212 span.image img { border-style: none; }
213 a.image:visited { color: white; }
215 dl {
216 margin-top: 0.8em;
217 margin-bottom: 0.8em;
219 dt {
220 margin-top: 0.5em;
221 margin-bottom: 0;
222 font-style: normal;
223 color: navy;
225 dd > *:first-child {
226 margin-top: 0.1em;
229 ul, ol {
230 list-style-position: outside;
232 ol.arabic {
233 list-style-type: decimal;
235 ol.loweralpha {
236 list-style-type: lower-alpha;
238 ol.upperalpha {
239 list-style-type: upper-alpha;
241 ol.lowerroman {
242 list-style-type: lower-roman;
244 ol.upperroman {
245 list-style-type: upper-roman;
248 div.compact ul, div.compact ol,
249 div.compact p, div.compact p,
250 div.compact div, div.compact div {
251 margin-top: 0.1em;
252 margin-bottom: 0.1em;
255 div.tableblock > table {
256 border: 3px solid #527bbd;
258 thead {
259 font-family: sans-serif;
260 font-weight: bold;
262 tfoot {
263 font-weight: bold;
265 td > div.verse {
266 white-space: pre;
268 p.table {
269 margin-top: 0;
271 /* Because the table frame attribute is overriden by CSS in most browsers. */
272 div.tableblock > table[frame="void"] {
273 border-style: none;
275 div.tableblock > table[frame="hsides"] {
276 border-left-style: none;
277 border-right-style: none;
279 div.tableblock > table[frame="vsides"] {
280 border-top-style: none;
281 border-bottom-style: none;
285 div.hdlist {
286 margin-top: 0.8em;
287 margin-bottom: 0.8em;
289 div.hdlist tr {
290 padding-bottom: 15px;
292 dt.hdlist1.strong, td.hdlist1.strong {
293 font-weight: bold;
295 td.hdlist1 {
296 vertical-align: top;
297 font-style: normal;
298 padding-right: 0.8em;
299 color: navy;
301 td.hdlist2 {
302 vertical-align: top;
304 div.hdlist.compact tr {
305 margin: 0;
306 padding-bottom: 0;
309 .comment {
310 background: yellow;
313 @media print {
314 div#footer-badges { display: none; }
317 div#toctitle {
318 color: #527bbd;
319 font-family: sans-serif;
320 font-size: 1.1em;
321 font-weight: bold;
322 margin-top: 1.0em;
323 margin-bottom: 0.1em;
326 div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
327 margin-top: 0;
328 margin-bottom: 0;
330 div.toclevel2 {
331 margin-left: 2em;
332 font-size: 0.9em;
334 div.toclevel3 {
335 margin-left: 4em;
336 font-size: 0.9em;
338 div.toclevel4 {
339 margin-left: 6em;
340 font-size: 0.9em;
342 /* Overrides for manpage documents */
343 h1 {
344 padding-top: 0.5em;
345 padding-bottom: 0.5em;
346 border-top: 2px solid silver;
347 border-bottom: 2px solid silver;
349 h2 {
350 border-style: none;
352 div.sectionbody {
353 margin-left: 5%;
356 @media print {
357 div#toc { display: none; }
360 /* Workarounds for IE6's broken and incomplete CSS2. */
362 div.sidebar-content {
363 background: #ffffee;
364 border: 1px solid silver;
365 padding: 0.5em;
367 div.sidebar-title, div.image-title {
368 color: #527bbd;
369 font-family: sans-serif;
370 font-weight: bold;
371 margin-top: 0.0em;
372 margin-bottom: 0.5em;
375 div.listingblock div.content {
376 border: 1px solid silver;
377 background: #f4f4f4;
378 padding: 0.5em;
381 div.quoteblock-attribution {
382 padding-top: 0.5em;
383 text-align: right;
386 div.verseblock-content {
387 white-space: pre;
389 div.verseblock-attribution {
390 padding-top: 0.75em;
391 text-align: left;
394 div.exampleblock-content {
395 border-left: 2px solid silver;
396 padding-left: 0.5em;
399 /* IE6 sets dynamically generated links as visited. */
400 div#toc a:visited { color: blue; }
401 </style>
402 </head>
403 <body>
404 <div id="header">
405 <h1>
406 git-cvsserver(1) Manual Page
407 </h1>
408 <h2>NAME</h2>
409 <div class="sectionbody">
410 <p>git-cvsserver -
411 A CVS server emulator for git
412 </p>
413 </div>
414 </div>
415 <h2 id="_synopsis">SYNOPSIS</h2>
416 <div class="sectionbody">
417 <div class="paragraph"><p>SSH:</p></div>
418 <div class="verseblock">
419 <div class="verseblock-content">export CVS_SERVER="git cvsserver"
420 <em>cvs</em> -d :ext:user@server/path/repo.git co &lt;HEAD_name&gt;</div>
421 <div class="verseblock-attribution">
422 </div></div>
423 <div class="paragraph"><p>pserver (/etc/inetd.conf):</p></div>
424 <div class="verseblock">
425 <div class="verseblock-content">cvspserver stream tcp nowait nobody /usr/bin/git-cvsserver git-cvsserver pserver</div>
426 <div class="verseblock-attribution">
427 </div></div>
428 <div class="paragraph"><p>Usage:</p></div>
429 <div class="verseblock">
430 <div class="verseblock-content"><em>git-cvsserver</em> [options] [pserver|server] [&lt;directory&gt; &#8230;]</div>
431 <div class="verseblock-attribution">
432 </div></div>
433 </div>
434 <h2 id="_options">OPTIONS</h2>
435 <div class="sectionbody">
436 <div class="paragraph"><p>All these options obviously only make sense if enforced by the server side.
437 They have been implemented to resemble the <a href="git-daemon.html">git-daemon(1)</a> options as
438 closely as possible.</p></div>
439 <div class="dlist"><dl>
440 <dt class="hdlist1">
441 --base-path &lt;path&gt;
442 </dt>
443 <dd>
445 Prepend <em>path</em> to requested CVSROOT
446 </p>
447 </dd>
448 <dt class="hdlist1">
449 --strict-paths
450 </dt>
451 <dd>
453 Don&#8217;t allow recursing into subdirectories
454 </p>
455 </dd>
456 <dt class="hdlist1">
457 --export-all
458 </dt>
459 <dd>
461 Don&#8217;t check for <tt>gitcvs.enabled</tt> in config. You also have to specify a list
462 of allowed directories (see below) if you want to use this option.
463 </p>
464 </dd>
465 <dt class="hdlist1">
467 </dt>
468 <dt class="hdlist1">
469 --version
470 </dt>
471 <dd>
473 Print version information and exit
474 </p>
475 </dd>
476 <dt class="hdlist1">
478 </dt>
479 <dt class="hdlist1">
481 </dt>
482 <dt class="hdlist1">
483 --help
484 </dt>
485 <dd>
487 Print usage information and exit
488 </p>
489 </dd>
490 <dt class="hdlist1">
491 &lt;directory&gt;
492 </dt>
493 <dd>
495 You can specify a list of allowed directories. If no directories
496 are given, all are allowed. This is an additional restriction, gitcvs
497 access still needs to be enabled by the <tt>gitcvs.enabled</tt> config option
498 unless <em>--export-all</em> was given, too.
499 </p>
500 </dd>
501 </dl></div>
502 </div>
503 <h2 id="_description">DESCRIPTION</h2>
504 <div class="sectionbody">
505 <div class="paragraph"><p>This application is a CVS emulation layer for git.</p></div>
506 <div class="paragraph"><p>It is highly functional. However, not all methods are implemented,
507 and for those methods that are implemented,
508 not all switches are implemented.</p></div>
509 <div class="paragraph"><p>Testing has been done using both the CLI CVS client, and the Eclipse CVS
510 plugin. Most functionality works fine with both of these clients.</p></div>
511 </div>
512 <h2 id="_limitations">LIMITATIONS</h2>
513 <div class="sectionbody">
514 <div class="paragraph"><p>CVS clients cannot tag, branch or perform GIT merges.</p></div>
515 <div class="paragraph"><p><em>git-cvsserver</em> maps GIT branches to CVS modules. This is very different
516 from what most CVS users would expect since in CVS modules usually represent
517 one or more directories.</p></div>
518 </div>
519 <h2 id="_installation">INSTALLATION</h2>
520 <div class="sectionbody">
521 <div class="olist arabic"><ol class="arabic">
522 <li>
524 If you are going to offer CVS access via pserver, add a line in
525 /etc/inetd.conf like
526 </p>
527 <div class="listingblock">
528 <div class="content">
529 <pre><tt> cvspserver stream tcp nowait nobody git-cvsserver pserver</tt></pre>
530 </div></div>
531 <div class="paragraph"><p>Note: Some inetd servers let you specify the name of the executable
532 independently of the value of argv[0] (i.e. the name the program assumes
533 it was executed with). In this case the correct line in /etc/inetd.conf
534 looks like</p></div>
535 <div class="listingblock">
536 <div class="content">
537 <pre><tt> cvspserver stream tcp nowait nobody /usr/bin/git-cvsserver git-cvsserver pserver</tt></pre>
538 </div></div>
539 <div class="paragraph"><p>Only anonymous access is provided by pserve by default. To commit you
540 will have to create pserver accounts, simply add a gitcvs.authdb
541 setting in the config file of the repositories you want the cvsserver
542 to allow writes to, for example:</p></div>
543 <div class="listingblock">
544 <div class="content">
545 <pre><tt> [gitcvs]
546 authdb = /etc/cvsserver/passwd</tt></pre>
547 </div></div>
548 <div class="paragraph"><p>The format of these files is username followed by the crypted password,
549 for example:</p></div>
550 <div class="listingblock">
551 <div class="content">
552 <pre><tt> myuser:$1Oyx5r9mdGZ2
553 myuser:$1$BA)@$vbnMJMDym7tA32AamXrm./</tt></pre>
554 </div></div>
555 <div class="paragraph"><p>You can use the <em>htpasswd</em> facility that comes with Apache to make these
556 files, but Apache&#8217;s MD5 crypt method differs from the one used by most C
557 library&#8217;s crypt() function, so don&#8217;t use the -m option.</p></div>
558 <div class="paragraph"><p>Alternatively you can produce the password with perl&#8217;s crypt() operator:</p></div>
559 <div class="listingblock">
560 <div class="content">
561 <pre><tt> perl -e 'my ($user, $pass) = @ARGV; printf "%s:%s\n", $user, crypt($user, $pass)' $USER password</tt></pre>
562 </div></div>
563 <div class="paragraph"><p>Then provide your password via the pserver method, for example:</p></div>
564 <div class="listingblock">
565 <div class="content">
566 <pre><tt> cvs -d:pserver:someuser:somepassword &lt;at&gt; server/path/repo.git co &lt;HEAD_name&gt;</tt></pre>
567 </div></div>
568 <div class="paragraph"><p>No special setup is needed for SSH access, other than having GIT tools
569 in the PATH. If you have clients that do not accept the CVS_SERVER
570 environment variable, you can rename <em>git-cvsserver</em> to <tt>cvs</tt>.</p></div>
571 <div class="paragraph"><p>Note: Newer CVS versions (&gt;= 1.12.11) also support specifying
572 CVS_SERVER directly in CVSROOT like</p></div>
573 <div class="listingblock">
574 <div class="content">
575 <pre><tt>cvs -d ":ext;CVS_SERVER=git cvsserver:user@server/path/repo.git" co &lt;HEAD_name&gt;</tt></pre>
576 </div></div>
577 <div class="paragraph"><p>This has the advantage that it will be saved in your <em>CVS/Root</em> files and
578 you don&#8217;t need to worry about always setting the correct environment
579 variable. SSH users restricted to <em>git-shell</em> don&#8217;t need to override the default
580 with CVS_SERVER (and shouldn&#8217;t) as <em>git-shell</em> understands <tt>cvs</tt> to mean
581 <em>git-cvsserver</em> and pretends that the other end runs the real <em>cvs</em> better.</p></div>
582 </li>
583 <li>
585 For each repo that you want accessible from CVS you need to edit config in
586 the repo and add the following section.
587 </p>
588 <div class="listingblock">
589 <div class="content">
590 <pre><tt> [gitcvs]
591 enabled=1
592 # optional for debugging
593 logfile=/path/to/logfile</tt></pre>
594 </div></div>
595 <div class="paragraph"><p>Note: you need to ensure each user that is going to invoke <em>git-cvsserver</em> has
596 write access to the log file and to the database (see
597 <a href="#dbbackend">Database Backend</a>. If you want to offer write access over
598 SSH, the users of course also need write access to the git repository itself.</p></div>
599 <div class="paragraph"><p>You also need to ensure that each repository is "bare" (without a git index
600 file) for <tt>cvs commit</tt> to work. See <a href="gitcvs-migration.html">gitcvs-migration(7)</a>.</p></div>
601 <div class="paragraph" id="configaccessmethod"><p>All configuration variables can also be overridden for a specific method of
602 access. Valid method names are "ext" (for SSH access) and "pserver". The
603 following example configuration would disable pserver access while still
604 allowing access over SSH.</p></div>
605 <div class="listingblock">
606 <div class="content">
607 <pre><tt> [gitcvs]
608 enabled=0
610 [gitcvs "ext"]
611 enabled=1</tt></pre>
612 </div></div>
613 </li>
614 <li>
616 If you didn&#8217;t specify the CVSROOT/CVS_SERVER directly in the checkout command,
617 automatically saving it in your <em>CVS/Root</em> files, then you need to set them
618 explicitly in your environment. CVSROOT should be set as per normal, but the
619 directory should point at the appropriate git repo. As above, for SSH clients
620 <em>not</em> restricted to <em>git-shell</em>, CVS_SERVER should be set to <em>git-cvsserver</em>.
621 </p>
622 <div class="listingblock">
623 <div class="content">
624 <pre><tt> export CVSROOT=:ext:user@server:/var/git/project.git
625 export CVS_SERVER="git cvsserver"</tt></pre>
626 </div></div>
627 </li>
628 <li>
630 For SSH clients that will make commits, make sure their server-side
631 .ssh/environment files (or .bashrc, etc., according to their specific shell)
632 export appropriate values for GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL,
633 GIT_COMMITTER_NAME, and GIT_COMMITTER_EMAIL. For SSH clients whose login
634 shell is bash, .bashrc may be a reasonable alternative.
635 </p>
636 </li>
637 <li>
639 Clients should now be able to check out the project. Use the CVS <em>module</em>
640 name to indicate what GIT <em>head</em> you want to check out. This also sets the
641 name of your newly checked-out directory, unless you tell it otherwise with
642 <tt>-d &lt;dir_name&gt;</tt>. For example, this checks out <em>master</em> branch to the
643 <tt>project-master</tt> directory:
644 </p>
645 <div class="listingblock">
646 <div class="content">
647 <pre><tt> cvs co -d project-master master</tt></pre>
648 </div></div>
649 </li>
650 </ol></div>
651 </div>
652 <h2 id="dbbackend">Database Backend</h2>
653 <div class="sectionbody">
654 <div class="paragraph"><p><em>git-cvsserver</em> uses one database per git head (i.e. CVS module) to
655 store information about the repository to maintain consistent
656 CVS revision numbers. The database needs to be
657 updated (i.e. written to) after every commit.</p></div>
658 <div class="paragraph"><p>If the commit is done directly by using <tt>git</tt> (as opposed to
659 using <em>git-cvsserver</em>) the update will need to happen on the
660 next repository access by <em>git-cvsserver</em>, independent of
661 access method and requested operation.</p></div>
662 <div class="paragraph"><p>That means that even if you offer only read access (e.g. by using
663 the pserver method), <em>git-cvsserver</em> should have write access to
664 the database to work reliably (otherwise you need to make sure
665 that the database is up-to-date any time <em>git-cvsserver</em> is executed).</p></div>
666 <div class="paragraph"><p>By default it uses SQLite databases in the git directory, named
667 <tt>gitcvs.&lt;module_name&gt;.sqlite</tt>. Note that the SQLite backend creates
668 temporary files in the same directory as the database file on
669 write so it might not be enough to grant the users using
670 <em>git-cvsserver</em> write access to the database file without granting
671 them write access to the directory, too.</p></div>
672 <div class="paragraph"><p>The database can not be reliably regenerated in a
673 consistent form after the branch it is tracking has changed.
674 Example: For merged branches, <em>git-cvsserver</em> only tracks
675 one branch of development, and after a <em>git merge</em> an
676 incrementally updated database may track a different branch
677 than a database regenerated from scratch, causing inconsistent
678 CVS revision numbers. <tt>git-cvsserver</tt> has no way of knowing which
679 branch it would have picked if it had been run incrementally
680 pre-merge. So if you have to fully or partially (from old
681 backup) regenerate the database, you should be suspicious
682 of pre-existing CVS sandboxes.</p></div>
683 <div class="paragraph"><p>You can configure the database backend with the following
684 configuration variables:</p></div>
685 <h3 id="_configuring_database_backend">Configuring database backend</h3><div style="clear:left"></div>
686 <div class="paragraph"><p><em>git-cvsserver</em> uses the Perl DBI module. Please also read
687 its documentation if changing these variables, especially
688 about <tt>DBI&#8594;connect()</tt>.</p></div>
689 <div class="dlist"><dl>
690 <dt class="hdlist1">
691 gitcvs.dbname
692 </dt>
693 <dd>
695 Database name. The exact meaning depends on the
696 selected database driver, for SQLite this is a filename.
697 Supports variable substitution (see below). May
698 not contain semicolons (<tt>;</tt>).
699 Default: <em>%Ggitcvs.%m.sqlite</em>
700 </p>
701 </dd>
702 <dt class="hdlist1">
703 gitcvs.dbdriver
704 </dt>
705 <dd>
707 Used DBI driver. You can specify any available driver
708 for this here, but it might not work. cvsserver is tested
709 with <em>DBD::SQLite</em>, reported to work with
710 <em>DBD::Pg</em>, and reported <strong>not</strong> to work with <em>DBD::mysql</em>.
711 Please regard this as an experimental feature. May not
712 contain colons (<tt>:</tt>).
713 Default: <em>SQLite</em>
714 </p>
715 </dd>
716 <dt class="hdlist1">
717 gitcvs.dbuser
718 </dt>
719 <dd>
721 Database user. Only useful if setting <tt>dbdriver</tt>, since
722 SQLite has no concept of database users. Supports variable
723 substitution (see below).
724 </p>
725 </dd>
726 <dt class="hdlist1">
727 gitcvs.dbpass
728 </dt>
729 <dd>
731 Database password. Only useful if setting <tt>dbdriver</tt>, since
732 SQLite has no concept of database passwords.
733 </p>
734 </dd>
735 <dt class="hdlist1">
736 gitcvs.dbTableNamePrefix
737 </dt>
738 <dd>
740 Database table name prefix. Supports variable substitution
741 (see below). Any non-alphabetic characters will be replaced
742 with underscores.
743 </p>
744 </dd>
745 </dl></div>
746 <div class="paragraph"><p>All variables can also be set per access method, see <a href="#configaccessmethod">above</a>.</p></div>
747 <h4 id="_variable_substitution">Variable substitution</h4>
748 <div class="paragraph"><p>In <tt>dbdriver</tt> and <tt>dbuser</tt> you can use the following variables:</p></div>
749 <div class="dlist"><dl>
750 <dt class="hdlist1">
752 </dt>
753 <dd>
755 git directory name
756 </p>
757 </dd>
758 <dt class="hdlist1">
760 </dt>
761 <dd>
763 git directory name, where all characters except for
764 alpha-numeric ones, <tt>.</tt>, and <tt>-</tt> are replaced with
765 <tt>_</tt> (this should make it easier to use the directory
766 name in a filename if wanted)
767 </p>
768 </dd>
769 <dt class="hdlist1">
771 </dt>
772 <dd>
774 CVS module/git head name
775 </p>
776 </dd>
777 <dt class="hdlist1">
779 </dt>
780 <dd>
782 access method (one of "ext" or "pserver")
783 </p>
784 </dd>
785 <dt class="hdlist1">
787 </dt>
788 <dd>
790 Name of the user running <em>git-cvsserver</em>.
791 If no name can be determined, the
792 numeric uid is used.
793 </p>
794 </dd>
795 </dl></div>
796 </div>
797 <h2 id="_environment">ENVIRONMENT</h2>
798 <div class="sectionbody">
799 <div class="paragraph"><p>These variables obviate the need for command-line options in some
800 circumstances, allowing easier restricted usage through git-shell.</p></div>
801 <div class="paragraph"><p>GIT_CVSSERVER_BASE_PATH takes the place of the argument to --base-path.</p></div>
802 <div class="paragraph"><p>GIT_CVSSERVER_ROOT specifies a single-directory whitelist. The
803 repository must still be configured to allow access through
804 git-cvsserver, as described above.</p></div>
805 <div class="paragraph"><p>When these environment variables are set, the corresponding
806 command-line arguments may not be used.</p></div>
807 </div>
808 <h2 id="_eclipse_cvs_client_notes">Eclipse CVS Client Notes</h2>
809 <div class="sectionbody">
810 <div class="paragraph"><p>To get a checkout with the Eclipse CVS client:</p></div>
811 <div class="olist arabic"><ol class="arabic">
812 <li>
814 Select "Create a new project &#8594; From CVS checkout"
815 </p>
816 </li>
817 <li>
819 Create a new location. See the notes below for details on how to choose the
820 right protocol.
821 </p>
822 </li>
823 <li>
825 Browse the <em>modules</em> available. It will give you a list of the heads in
826 the repository. You will not be able to browse the tree from there. Only
827 the heads.
828 </p>
829 </li>
830 <li>
832 Pick <em>HEAD</em> when it asks what branch/tag to check out. Untick the
833 "launch commit wizard" to avoid committing the .project file.
834 </p>
835 </li>
836 </ol></div>
837 <div class="paragraph"><p>Protocol notes: If you are using anonymous access via pserver, just select that.
838 Those using SSH access should choose the <em>ext</em> protocol, and configure <em>ext</em>
839 access on the Preferences&#8594;Team&#8594;CVS&#8594;ExtConnection pane. Set CVS_SERVER to
840 "<tt>git cvsserver</tt>". Note that password support is not good when using <em>ext</em>,
841 you will definitely want to have SSH keys setup.</p></div>
842 <div class="paragraph"><p>Alternatively, you can just use the non-standard extssh protocol that Eclipse
843 offer. In that case CVS_SERVER is ignored, and you will have to replace
844 the cvs utility on the server with <em>git-cvsserver</em> or manipulate your <tt>.bashrc</tt>
845 so that calling <em>cvs</em> effectively calls <em>git-cvsserver</em>.</p></div>
846 </div>
847 <h2 id="_clients_known_to_work">Clients known to work</h2>
848 <div class="sectionbody">
849 <div class="ulist"><ul>
850 <li>
852 CVS 1.12.9 on Debian
853 </p>
854 </li>
855 <li>
857 CVS 1.11.17 on MacOSX (from Fink package)
858 </p>
859 </li>
860 <li>
862 Eclipse 3.0, 3.1.2 on MacOSX (see Eclipse CVS Client Notes)
863 </p>
864 </li>
865 <li>
867 TortoiseCVS
868 </p>
869 </li>
870 </ul></div>
871 </div>
872 <h2 id="_operations_supported">Operations supported</h2>
873 <div class="sectionbody">
874 <div class="paragraph"><p>All the operations required for normal use are supported, including
875 checkout, diff, status, update, log, add, remove, commit.
876 Legacy monitoring operations are not supported (edit, watch and related).
877 Exports and tagging (tags and branches) are not supported at this stage.</p></div>
878 <h3 id="_crlf_line_ending_conversions">CRLF Line Ending Conversions</h3><div style="clear:left"></div>
879 <div class="paragraph"><p>By default the server leaves the <em>-k</em> mode blank for all files,
880 which causes the CVS client to treat them as a text files, subject
881 to end-of-line conversion on some platforms.</p></div>
882 <div class="paragraph"><p>You can make the server use the end-of-line conversion attributes to
883 set the <em>-k</em> modes for files by setting the <tt>gitcvs.usecrlfattr</tt>
884 config variable. See <a href="gitattributes.html">gitattributes(5)</a> for more information
885 about end-of-line conversion.</p></div>
886 <div class="paragraph"><p>Alternatively, if <tt>gitcvs.usecrlfattr</tt> config is not enabled
887 or the attributes do not allow automatic detection for a filename, then
888 the server uses the <tt>gitcvs.allbinary</tt> config for the default setting.
889 If <tt>gitcvs.allbinary</tt> is set, then file not otherwise
890 specified will default to <em>-kb</em> mode. Otherwise the <em>-k</em> mode
891 is left blank. But if <tt>gitcvs.allbinary</tt> is set to "guess", then
892 the correct <em>-k</em> mode will be guessed based on the contents of
893 the file.</p></div>
894 <div class="paragraph"><p>For best consistency with <em>cvs</em>, it is probably best to override the
895 defaults by setting <tt>gitcvs.usecrlfattr</tt> to true,
896 and <tt>gitcvs.allbinary</tt> to "guess".</p></div>
897 </div>
898 <h2 id="_dependencies">Dependencies</h2>
899 <div class="sectionbody">
900 <div class="paragraph"><p><em>git-cvsserver</em> depends on DBD::SQLite.</p></div>
901 </div>
902 <h2 id="_copyright_and_authors">Copyright and Authors</h2>
903 <div class="sectionbody">
904 <div class="paragraph"><p>This program is copyright The Open University UK - 2006.</p></div>
905 <div class="paragraph"><p>Authors:</p></div>
906 <div class="ulist"><ul>
907 <li>
909 Martyn Smith &lt;<a href="mailto:martyn@catalyst.net.nz">martyn@catalyst.net.nz</a>&gt;
910 </p>
911 </li>
912 <li>
914 Martin Langhoff &lt;<a href="mailto:martin@laptop.org">martin@laptop.org</a>&gt;
915 </p>
916 </li>
917 </ul></div>
918 <div class="paragraph"><p>with ideas and patches from participants of the git-list &lt;<a href="mailto:git@vger.kernel.org">git@vger.kernel.org</a>&gt;.</p></div>
919 </div>
920 <h2 id="_documentation">Documentation</h2>
921 <div class="sectionbody">
922 <div class="paragraph"><p>Documentation by Martyn Smith &lt;<a href="mailto:martyn@catalyst.net.nz">martyn@catalyst.net.nz</a>&gt;, Martin Langhoff &lt;<a href="mailto:martin@laptop.org">martin@laptop.org</a>&gt;, and Matthias Urlichs &lt;<a href="mailto:smurf@smurf.noris.de">smurf@smurf.noris.de</a>&gt;.</p></div>
923 </div>
924 <h2 id="_git">GIT</h2>
925 <div class="sectionbody">
926 <div class="paragraph"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
927 </div>
928 <div id="footer">
929 <div id="footer-text">
930 Last updated 2010-11-06 00:41:57 UTC
931 </div>
932 </div>
933 </body>
934 </html>