From 4607db65227c284811019d05e54dc0b595e1aed5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 3 Jan 2013 22:35:35 -0400 Subject: simplify --- doc/tips/setup_a_public_repository_on_a_web_site.mdwn | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/tips/setup_a_public_repository_on_a_web_site.mdwn b/doc/tips/setup_a_public_repository_on_a_web_site.mdwn index 5ed3a98f4..2b2363d3e 100644 --- a/doc/tips/setup_a_public_repository_on_a_web_site.mdwn +++ b/doc/tips/setup_a_public_repository_on_a_web_site.mdwn @@ -12,8 +12,9 @@ Here's how I set it up. --[[Joey]] 4. `git init; git annex init` 3. We want users to be able to clone the git repository over http, because git-annex can download files from it over http as well. For this to - work, `git update-server-info` needs to get run after commits. So - put it in the git `post-update` hook. + work, `git update-server-info` needs to get run after commits. The + git `post-update` hook will take care of this, you just need to enable + the hook. `chmod +x .git/hooks/post-update` 5. `git annex add; git commit -m added` 6. Make sure users can still download files from the site directly. 7. Instruct advanced users to clone a http url that ends with the "/.git/" -- cgit v1.2.3