From 38d6f051ee2c4e6bffb4f6dec55e8853f1eb96f9 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 21 Jul 2020 20:09:41 -0700 Subject: rename new config key Signed-off-by: Sean Whitton --- README.rst | 4 ++-- git-remote-gcrypt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index b1f12cb..e7cbfa6 100644 --- a/README.rst +++ b/README.rst @@ -97,9 +97,9 @@ The following ``git-config(1)`` variables are supported: ``rsync://`` backend. If the flags are set to a specific remote, the global flags, if also set, will not be applied for that remote. -``remote..gcrypt-force-required`` +``remote..gcrypt-require-explicit-force-push`` .. -``gcrypt.force-required`` +``gcrypt.require-explicit-force-push`` A known issue is that every git push effectively has a ``--force``. By default, git-remote-gcrypt will warn the user of this known issue diff --git a/git-remote-gcrypt b/git-remote-gcrypt index 0cd4c0e..176de31 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -432,8 +432,8 @@ read_config() Conf_gpg_args=$(git config --get gcrypt.gpg-args '.+' || :) Conf_rsync_put_flags=$(git config --get "remote.$NAME.gcrypt-rsync-put-flags" '.+' || git config --get "gcrypt.rsync-put-flags" '.+' || :) - Conf_force_required=$(git config --get --bool "remote.$NAME.gcrypt-force-required" '.+' || - git config --get --bool gcrypt.force-required '.+' || :) + Conf_force_required=$(git config --get --bool "remote.$NAME.gcrypt-require-explicit-force-push" '.+' || + git config --get --bool gcrypt.require-explicit-force-push '.+' || :) # Figure out which keys we should encrypt to or accept signatures from if isnull "$conf_part" || iseq "$conf_part" simple -- cgit v1.2.3