diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-11-19 00:32:07 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-11-19 00:32:07 +0100 |
commit | 53ecd048919835a116fce1089b78a46a69ecb374 (patch) | |
tree | 7d1183280d3c41dbbec49042180521ee18ce951b /man | |
parent | 5ba42019dcad93811d717a60ed7ce4ca5d45d41d (diff) | |
download | blogc-53ecd048919835a116fce1089b78a46a69ecb374.tar.gz blogc-53ecd048919835a116fce1089b78a46a69ecb374.tar.bz2 blogc-53ecd048919835a116fce1089b78a46a69ecb374.zip |
git-receiver: allow to push to mirror manually
Diffstat (limited to 'man')
-rw-r--r-- | man/blogc-git-receiver.1.ronn | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/man/blogc-git-receiver.1.ronn b/man/blogc-git-receiver.1.ronn index 8aa8099..d5f695f 100644 --- a/man/blogc-git-receiver.1.ronn +++ b/man/blogc-git-receiver.1.ronn @@ -133,6 +133,18 @@ as `root`: # su -s /bin/sh - blogc +### Push to mirror manually + +If for some reason you want to push the repository of a given website to remote +mirror, you can run its `post-receive` hook manually in the server: + + # su -s /bin/sh - blogc + $ cd ~/repos/blogs/blogc-example.git + $ ./hooks/post-receive + +WARNING: If you push manually and your server's repository is empty, you'll clean +your mirror repository. + ## ENVIRONMENT VARIABLES `blogc-git-receiver` will export an environment variable called `BLOGC_GIT_RECEIVER` |