From 0f333d21a2d747c015fbaca859c4ea84218c183f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 6 Jun 2017 15:19:31 -0400 Subject: clarify that git update-server-info needs to be run on the server forum/Trouble_setting_up_public_repo_cloneable_from_a_web_site/ was a user running that in their clone from the server.. --- doc/tips/setup_a_public_repository_on_a_web_site.mdwn | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 ce6230fa1..d7d7bd3a5 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 @@ -16,9 +16,10 @@ Here's how I set it up. --[[Joey]] [[working tree update when changes are pushed to it|making_a_remote_repo_update_when_changes_are_pushed_to_it]].) 6. 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. The - git `post-update` hook will take care of this, you just need to enable - the hook. `chmod +x .git/hooks/post-update` + work, `git update-server-info` needs to get run on the server after + commits or pushes to it. The git `post-update` hook will take care of + this, you just need to enable the hook on the server. + `chmod +x .git/hooks/post-update` 7. `git annex add; git commit -m added` 8. Make sure users can still download files from the site directly. 9. Instruct advanced users to clone a http url that ends with the "/.git/" -- cgit v1.2.3