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..
This commit is contained in:
Joey Hess 2017-06-06 15:19:31 -04:00
parent 5687cc55f9
commit baf9bda995
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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/"