Skip to content

Commit 963a653

Browse files
Jonathan Niedergitster
authored andcommitted
git-daemon(1): don't assume git-daemon is in /usr/bin
In the example inetd.conf lines in git-daemon(1), it was assumed that `git-daemon` resides in the user's /usr/bin. With this patch, we only assume `git` is in /usr/bin. The stronger assumption fails in the default installation nowadays. Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3861cd5 commit 963a653

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/git-daemon.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ git-daemon as inetd server::
206206
/etc/inetd all on one line:
207207
+
208208
------------------------------------------------
209-
git stream tcp nowait nobody /usr/bin/git-daemon
210-
git-daemon --inetd --verbose --export-all
209+
git stream tcp nowait nobody /usr/bin/git
210+
git daemon --inetd --verbose --export-all
211211
/pub/foo /pub/bar
212212
------------------------------------------------
213213

@@ -219,8 +219,8 @@ git-daemon as inetd server for virtual hosts::
219219
`/etc/inetd` all on one line:
220220
+
221221
------------------------------------------------
222-
git stream tcp nowait nobody /usr/bin/git-daemon
223-
git-daemon --inetd --verbose --export-all
222+
git stream tcp nowait nobody /usr/bin/git
223+
git daemon --inetd --verbose --export-all
224224
--interpolated-path=/pub/%H%D
225225
/pub/www.example.org/software
226226
/pub/www.example.com/software
@@ -241,7 +241,7 @@ git-daemon as regular daemon for virtual hosts::
241241
their IP addresses, start the daemon like this:
242242
+
243243
------------------------------------------------
244-
git-daemon --verbose --export-all
244+
git daemon --verbose --export-all
245245
--interpolated-path=/pub/%IP/%D
246246
/pub/192.168.1.200/software
247247
/pub/10.10.220.23/software

0 commit comments

Comments
 (0)