From 8c30ed2d8c8a278641cba7e5b10944d582df1c22 Mon Sep 17 00:00:00 2001 From: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com> Date: Sat, 25 Jun 2022 16:03:51 +0200 Subject: [PATCH 1/2] Add hint for GNUPGHOME environment variable With #19732, the default location for the `.gnupg` folder has changed. To mitigate this breaking change, users can specify the home directory for gnupg via `$GNUPGHOME` environment variable to keep using their current location. --- docs/content/doc/advanced/signing.en-us.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/content/doc/advanced/signing.en-us.md b/docs/content/doc/advanced/signing.en-us.md index 8ae2f94e9ece9..251dff61fbc39 100644 --- a/docs/content/doc/advanced/signing.en-us.md +++ b/docs/content/doc/advanced/signing.en-us.md @@ -100,7 +100,8 @@ ideal UI and therefore subject to change. **Since 1.17**, Gitea runs git in its own home directory `[repository].ROOT` and uses its own config `{[repository].ROOT}/.gitconfig`. If you have your own customized git config for Gitea, you should set these configs in system git config (aka `/etc/gitconfig`) or the Gitea internal git config `{[repository].ROOT}/.gitconfig`. -Related home files for git command (like `.gnupg`) should also be put in Gitea's git home directory `[repository].ROOT`. +Related home files for git command (like `.gnupg`) should also be put in Gitea's git home directory `[repository].ROOT`.\ +If you like to keep the `.gnupg` directory outside of `{[repository].ROOT}/`, consider setting the `$GNUPGHOME` environment variable to your preferred location. ### `INITIAL_COMMIT` From e43f9ed231ed90635ef8c281a0d7bbba236413c0 Mon Sep 17 00:00:00 2001 From: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com> Date: Sat, 25 Jun 2022 16:25:26 +0200 Subject: [PATCH 2/2] Update docs/content/doc/advanced/signing.en-us.md Co-authored-by: wxiaoguang --- docs/content/doc/advanced/signing.en-us.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/doc/advanced/signing.en-us.md b/docs/content/doc/advanced/signing.en-us.md index 251dff61fbc39..a319c2ce1998f 100644 --- a/docs/content/doc/advanced/signing.en-us.md +++ b/docs/content/doc/advanced/signing.en-us.md @@ -100,7 +100,7 @@ ideal UI and therefore subject to change. **Since 1.17**, Gitea runs git in its own home directory `[repository].ROOT` and uses its own config `{[repository].ROOT}/.gitconfig`. If you have your own customized git config for Gitea, you should set these configs in system git config (aka `/etc/gitconfig`) or the Gitea internal git config `{[repository].ROOT}/.gitconfig`. -Related home files for git command (like `.gnupg`) should also be put in Gitea's git home directory `[repository].ROOT`.\ +Related home files for git command (like `.gnupg`) should also be put in Gitea's git home directory `[repository].ROOT`. If you like to keep the `.gnupg` directory outside of `{[repository].ROOT}/`, consider setting the `$GNUPGHOME` environment variable to your preferred location.