From a7acf14da70c239f935f48f61d4bb53479cf15d5 Mon Sep 17 00:00:00 2001 From: yedamo Date: Sat, 20 Nov 2021 13:08:19 +0800 Subject: [PATCH] fix typo --- README.md | 2 +- cmd/git-sync/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a23df49..d34eab5 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ docker run -d \ | GIT_SYNC_EXECHOOK_COMMAND | `--exechook-command` | the command executed with the syncing repository as its working directory after syncing a new hash of the remote repository. it is subject to the sync time out and will extend period between syncs. (doesn't support the command arguments) | "" | | GIT_SYNC_EXECHOOK_TIMEOUT | `--exechook-timeout` | the timeout for the sync hook command | 30 (seconds) | | GIT_SYNC_EXECHOOK_BACKOFF | `--exechook-backoff` | the time to wait before retrying a failed sync hook command -| GIT_SYNC_WEBHOOK_URL | `--webhook-url` | the URL for a webook notification when syncs complete | "" | +| GIT_SYNC_WEBHOOK_URL | `--webhook-url` | the URL for a webhook notification when syncs complete | "" | | GIT_SYNC_WEBHOOK_METHOD | `--webhook-method` | the HTTP method for the webhook | "POST" | | GIT_SYNC_WEBHOOK_SUCCESS_STATUS | `--webhook-success-status` | the HTTP status code indicating a successful webhook (-1 disables success checks to make webhooks fire-and-forget) | 200 | | GIT_SYNC_WEBHOOK_TIMEOUT | `--webhook-timeout` | the timeout for the webhook | 1 (second) | diff --git a/cmd/git-sync/main.go b/cmd/git-sync/main.go index 07b6623..95a5bab 100644 --- a/cmd/git-sync/main.go +++ b/cmd/git-sync/main.go @@ -87,7 +87,7 @@ var flSparseCheckoutFile = flag.String("sparse-checkout-file", envString("GIT_SY "the path to a sparse-checkout file.") var flWebhookURL = flag.String("webhook-url", envString("GIT_SYNC_WEBHOOK_URL", ""), - "the URL for a webhook notification when syncs complete (default is no webook)") + "the URL for a webhook notification when syncs complete (default is no webhook)") var flWebhookMethod = flag.String("webhook-method", envString("GIT_SYNC_WEBHOOK_METHOD", "POST"), "the HTTP method for the webhook") var flWebhookStatusSuccess = flag.Int("webhook-success-status", envInt("GIT_SYNC_WEBHOOK_SUCCESS_STATUS", 200),