Use dashless form for git daemon

This commit is contained in:
Tommi Virtanen 2015-01-22 10:43:39 -08:00
parent e7d8875797
commit 9e1cbc0d8d
4 changed files with 10 additions and 10 deletions

View file

@ -137,18 +137,18 @@ Example configuration
:literal: :literal:
Using git-daemon Using ``git daemon``
================ ====================
Anonymous read-only access to ``git`` repositories is provided by Anonymous read-only access to ``git`` repositories is provided by
``git-daemon``, which is distributed as part of ``git``. But ``git daemon``, which is distributed as part of ``git``. But
``gitosis`` will still help you manage it: setting ``daemon = yes`` in ``gitosis`` will still help you manage it: setting ``daemon = yes`` in
your ``gitosis.conf``, either globally in ``[gitosis]`` or your ``gitosis.conf``, either globally in ``[gitosis]`` or
per-repository under ``[repo REPOSITORYNAME]``, makes ``gitosis`` per-repository under ``[repo REPOSITORYNAME]``, makes ``gitosis``
create the ``git-daemon-export-ok`` files in those repository, thus create the ``git-daemon-export-ok`` files in those repository, thus
telling ``git-daemon`` that publishing those repositories is ok. telling ``git daemon`` that publishing those repositories is ok.
To actually run ``git-daemon`` in Ubuntu, put this in To actually run ``git daemon`` in Ubuntu, put this in
``/etc/event.d/local-git-daemon``: ``/etc/event.d/local-git-daemon``:
.. include:: etc-event.d-local-git-daemon .. include:: etc-event.d-local-git-daemon

View file

@ -1,7 +1,7 @@
start on startup start on startup
stop on shutdown stop on shutdown
exec /usr/bin/git-daemon \ exec /usr/bin/git daemon \
--user=git --group=git \ --user=git --group=git \
--user-path=public-git \ --user-path=public-git \
--verbose \ --verbose \

View file

@ -11,7 +11,7 @@
## you want visible in gitweb. ## you want visible in gitweb.
gitweb = no gitweb = no
## Allow git-daemon to publish all known repositories. As with gitweb, ## Allow git daemon to publish all known repositories. As with gitweb,
## this can be done globally or per-repository. ## this can be done globally or per-repository.
daemon = no daemon = no
@ -44,7 +44,7 @@ description = blah blah
## Owner of this repository. Used in gitweb list of projects. ## Owner of this repository. Used in gitweb list of projects.
owner = John Doe owner = John Doe
## Allow git-daemon to publish this repository. ## Allow git daemon to publish this repository.
daemon = yes daemon = yes
[gitweb] [gitweb]

View file

@ -11,7 +11,7 @@ $projectroot = "/srv/example.com/git/repositories";
# By default, gitweb will happily let people browse any repository # By default, gitweb will happily let people browse any repository
# they guess the name of. This may or may not be what you wanted. I # they guess the name of. This may or may not be what you wanted. I
# choose to allow gitweb to show only repositories that git-daemon # choose to allow gitweb to show only repositories that git daemon
# is already sharing anonymously. # is already sharing anonymously.
$export_ok = "git-daemon-export-ok"; $export_ok = "git-daemon-export-ok";
@ -20,7 +20,7 @@ $export_ok = "git-daemon-export-ok";
# in gitosis.conf. This means you don't need daemon=yes, but you # in gitosis.conf. This means you don't need daemon=yes, but you
# can't have repositories hidden but browsable if you know the name. # can't have repositories hidden but browsable if you know the name.
# And note gitweb already allows downloading the full repository, # And note gitweb already allows downloading the full repository,
# so you might as well serve git-daemon too. # so you might as well serve git daemon too.
# $export_ok = ""; # $export_ok = "";
# $strict_export = "true"; # $strict_export = "true";