docs:site5:update-server-info

update-server-info

When using http:// or any other “dumb” protocol, git needs to set up files so a client knows what refs and packs are available.

enable the post-update hook

  • On your remote repo, cd into your repo.git/hooks
  • copy the sample file to a file that will execute
    cp post-update.sample post-update
  • make sure it is executable
    chmod +x post-update
  • since the command isn't on Site5 exactly the way it's listed in this file, open it and edit the file like this
    #exec git-update-server-info
    git update-server-info
  • docs/site5/update-server-info.txt
  • Last modified: 2016/03/27 22:41
  • by billh