Re: [PATCH v4] Smart-http documentation: add example of how to execute from userdir
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 5, 2010, 08:23 UTC
- Message-ID
- <7veim52c5e.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1262678381-86653-1-git-send-email-tarmigan+git@gmail.com>
Tarmigan Casebolt <tarmigan+git@gmail.com> writes:
Show 7 quoted lines
> +Depending on the global configuration of the web server, the > +"FollowSymLinks" or "SymLinksIfOwnerMatch" options might be needed. > +If the web server does not follow any symbolic links, the > +'git-http-backend' executable may be copied into the cgi-bin directory > +and renamed to 'git' to acheive the same effect, but it will also need > +to be manually updated whenever a new version of 'git-http-backend' is > +installed.
Hmph, has Apache heard of hardlinks? If not, wouldn't this be much simpler?
cat >git <<\EOF
#!/bin/sh
exec /path/to/libexec/git-core/git-http-backend "$@"
EOF
chmod +x git