aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-11-19 00:32:07 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-11-19 00:32:07 +0100
commit53ecd048919835a116fce1089b78a46a69ecb374 (patch)
tree7d1183280d3c41dbbec49042180521ee18ce951b /man
parent5ba42019dcad93811d717a60ed7ce4ca5d45d41d (diff)
downloadblogc-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.ronn12
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`