summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-06-06 15:19:31 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-06-06 15:19:31 -0400
commit0f333d21a2d747c015fbaca859c4ea84218c183f (patch)
tree4e7d82cc5c90f7056c5d35c6afc93a0ac83058f7
parent9abe3d35bbe866b83abf8c272cdb55542d3b944c (diff)
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..
-rw-r--r--doc/tips/setup_a_public_repository_on_a_web_site.mdwn7
1 files 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/"