From 53ecd048919835a116fce1089b78a46a69ecb374 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 19 Nov 2016 00:32:07 +0100 Subject: git-receiver: allow to push to mirror manually --- man/blogc-git-receiver.1.ronn | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'man') 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` -- cgit v1.2.3-18-g5258