From 3eb66cacfd7b8c9aa336a2da39db4c0474e57e5d Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 13 Sep 2014 10:13:51 -0700 Subject: [PATCH] xinetd/git: add read-only user comments to sample The git-daemon binary need not have write permission to the repositories it serves. --- xinetd/git | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xinetd/git b/xinetd/git index f2fe0df..8fc4e9c 100644 --- a/xinetd/git +++ b/xinetd/git @@ -1,6 +1,18 @@ # The equivalent inet.d configuration line (e.g. FreeBSD) would be: # git stream tcp46 nowait/0/600/2 repo /home/repo/bin/git git daemon --inetd --verbose --enable=upload-archive --base-path=/srv/git --export-all +# NOTE: The user this runs as need NOT have write access. +# This sample uses the "repo" user, but the user +# "nobody" should work just as well. + +# IMPORTANT: Git versions >= 1.8.4.2 and < 2.0.0 +# unfortunately require write permission into +# the repository when serving a shallow clone! +# YIKES! (A shallow clone turd gets left +# benind too.) Advice is to use a version of +# Git either BEFORE 1.8.4.2 or AT LEAST 2.0.0 +# to avoid this problem (and the turds). + service git { type = UNLISTED -- 2.11.4.GIT