From 5c63dc9cb59f4e7130521e1a98460c69a6e2aa73 Mon Sep 17 00:00:00 2001 From: Thomas Jackson Date: Thu, 17 Jan 2019 15:49:04 -0800 Subject: [PATCH] Update README based on comments in #110 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 20c6539..8b3b40b 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ this, it uses a git worktree in a subdirectory of the `--root` and flips a symlink. git-sync can also be configured to make webhook call upon sucessful git repo syncronisation. The call is made when right after the symlink is updated. + ## Usage ``` @@ -35,11 +36,12 @@ docker run -d \ ## Example of webhooks usage **Webhook config example** -A webhook config must be valid JSON. If ```success``` is not specified in the config, git-sync will not wait for a response. +A webhook config must be valid JSON. If `success` is not specified in the config, git-sync will continue regardless of response code (including errors). + ```json { "url": "http://localhost:9090/-/reload", - "method": "POST|GET", + "method": "POST", "success": 200 } ```