From c846c4841232745db7bd2671ce12f2be614511d7 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 26 May 2022 12:31:21 +0300 Subject: [PATCH] git/etc/gitconfig: "document" accepting signed pushes Resolves: #32 --- git/etc/README.md | 8 ++++++++ git/etc/gitconfig | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 git/etc/README.md create mode 100644 git/etc/gitconfig diff --git a/git/etc/README.md b/git/etc/README.md new file mode 100644 index 0000000..6d62ffb --- /dev/null +++ b/git/etc/README.md @@ -0,0 +1,8 @@ +This `/etc/gitconfig` currently just "documents" how to enable signed git +pushes, however it requires a recent git version on the server too to allow +SSH. + +Client-side: `git config --global push.gpgSign if-asked` (to not die when +server doesn't support it) + +Source: https://people.kernel.org/monsieuricon/signed-git-pushes via https://github.com/go-gitea/gitea/issues/13454 diff --git a/git/etc/gitconfig b/git/etc/gitconfig new file mode 100644 index 0000000..7f3158b --- /dev/null +++ b/git/etc/gitconfig @@ -0,0 +1,3 @@ +[receive] + advertisePushOptions = true + certNonceSeed = ""